From: Greg Price Date: Fri, 29 Nov 2013 20:56:16 +0000 (-0500) Subject: random: simplify accounting logic X-Git-Tag: v3.15-rc1~88^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee1de406ba6eb1;p=pandora-kernel.git random: simplify accounting logic 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: Jiri Kosina Cc: "H. Peter Anvin" Signed-off-by: Greg Price Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed