From: Eric Sandeen Date: Tue, 18 Aug 2009 03:55:24 +0000 (-0400) Subject: simplify some logic in ext4_mb_normalize_request X-Git-Tag: v2.6.32-rc1~633^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38877f4e8dbbec12c6fde85ee1fce1dc27ef3290;p=pandora-kernel.git simplify some logic in ext4_mb_normalize_request While reading through some of the mballoc code it seems that a couple spots in the size normalization function could be streamlined. The test for non-overlapping PAs can be or'd for the start & end conditions, and the tests for adjacent PAs can be else-if'd - it's essentially independently testing: if (A + B <= C) ... if (A > C) ... These cannot both be true so it seems like the else-if might be slightly more efficient and/or informative. Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed