diff options
author | Eric Sandeen <sandeen@redhat.com> | 2009-08-17 23:55:24 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-08-17 23:55:24 -0400 |
commit | 38877f4e8dbbec12c6fde85ee1fce1dc27ef3290 (patch) | |
tree | c7cab3a9c5f5bc53f0ba7df269a630b0018dac8a /fs/nfsd | |
parent | 0373130d5bc783751c1fbad948886916a21d4559 (diff) |
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 <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/nfsd')
0 files changed, 0 insertions, 0 deletions