Whamcloud - gitweb
e2fsck: optimize out the use region_t in scan_extent_node()
authorJaco Kroon <jaco@uls.co.za>
Wed, 23 Aug 2017 17:54:25 +0000 (13:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 26 Aug 2017 15:21:34 +0000 (11:21 -0400)
commitee84bbc813b79fe948aa8d0ac1ad51969e167382
tree3680438f98c48d47337a936c8ff046d6d3ac9702
parentc3c7edcb35ddcaac84c3b599e5ed414e5252a755
e2fsck: optimize out the use region_t in scan_extent_node()

Since extents have a guarantee of being monotonically increasing we
merely need to check that block n+1 starts after block n.  This is a
simple enough check and we can perform this by calculating the next
expected logical block instead of using the region usage tracking data
abstraction.

Signed-off-by: Jaco Kroon <jaco@uls.co.za>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c