Re: [PATCH] pre7-1 semicolon & nicely readableB

From: Rik van Riel (riel@conectiva.com.br)
Date: Tue May 02 2000 - 06:19:18 EST


On Tue, 2 May 2000, Chris Evans wrote:
> On Mon, 1 May 2000, Rik van Riel wrote:
>
> > I want to inform you that you're wrong. The only difference is
> > in readability.
>
> [..]
>
> > In fact, the <10 test is only there to prevent infinite looping
> > for when a process with 0 swap_cnt "slips through" the tests above.
>
> If such a value should never "slip through", then, for
> readability, you want an assert (e.g. BUG() ).

It's ok for them to slip through, it's just not ok for the kernel
to go into an infinite loop here...

Rik

--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies http://www.conectiva.com/ http://www.surriel.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:10 EST