Re: [PATCH 6/9] random: simplify accounting logic

2013-11-29 Thread Theodore Ts'o
On Wed, Nov 13, 2013 at 03:08:21AM -0500, Greg Price wrote: > This logic is exactly equivalent to the old logic, but it should > be easier to see what it's doing. > > The equivalence depends on one fact from outside this function: > when 'r->limit' is false, 'reserved' is zero. (Well, two facts;

[PATCH 6/9] random: simplify accounting logic

2013-11-13 Thread Greg Price
This logic is exactly equivalent to the old logic, but it should be easier to see what it's doing. The equivalence depends on one fact from outside this function: when 'r->limit' is false, 'reserved' is zero. (Well, two facts; the other is that 'reserved' is never negative.) Cc: "Theodore Ts'o"