ext4: miscellaneous partial cluster cleanups
authorEric Whitney <enwlinux@gmail.com>
Sun, 23 Nov 2014 05:59:39 +0000 (00:59 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 23 Nov 2014 05:59:39 +0000 (00:59 -0500)
commit345ee947482f1c787b31014008586b8f512af1bd
tree1316cb427103e7e75d9ce63fa37ac43f3926bcad
parent5bf43760654fa618fb8bb1612ee2d7ae164f7f94
ext4: miscellaneous partial cluster cleanups

Add some casts and rearrange a few statements for improved readability.
Some code can also be simplified and made more readable if we set
partial_cluster to 0 rather than to a negative value when we can tell
we've hit the left edge of the punched region.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c