Whamcloud - gitweb
e2fsck: collapse holes in extent-based directories
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 18 Jul 2014 22:54:30 +0000 (15:54 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 25 Jul 2014 12:30:11 +0000 (08:30 -0400)
commit9f005a90f86fccdfb9b016e39a9e9eca3e8911b2
tree7ed94926c6512423554df991a25851848dbc1f1c
parentc23b2cc439a042b1e58eef3eb09668d3f7349600
e2fsck: collapse holes in extent-based directories

If we notice a hole in the block map of an extent-based directory,
offer to collapse the hole by decreasing the logical block # of the
extent.  This saves us from pass 3's inefficient strategy, which fills
the holes by mapping in a lot of empty directory blocks.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c
e2fsck/problem.c
e2fsck/problem.h
tests/f_holedir2/expect.1
tests/f_holedir3/expect.1 [new file with mode: 0644]
tests/f_holedir3/expect.2 [new file with mode: 0644]
tests/f_holedir3/image.gz [new file with mode: 0644]
tests/f_holedir3/name [new file with mode: 0644]