]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - e2fsck/e2fsck.h
libext2fs/e2fsck: provide routines to read-ahead metadata
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 21 Apr 2015 02:27:19 +0000 (22:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 21 Apr 2015 14:40:15 +0000 (10:40 -0400)
commit79614b27098f643a7b112b2c3f111647c13906b3
tree3065b7603cefe3d57b2f8718266f5f198eb37721
parent76761ca2211892898d49ae50f88b32d2e7cc7925
libext2fs/e2fsck: provide routines to read-ahead metadata

This patch adds to e2fsck the ability to pre-fetch metadata into the
page cache in the hopes of speeding up fsck runs.  There are two new
functions -- the first allows a caller to readahead a list of blocks,
and the second is a helper function that uses that first mechanism to
load group data (bitmaps, inode tables).

These new e2fsck routines require the addition of a dblist API to
allow us to iterate a subset of a dblist.  This will enable
incremental directory block readahead in e2fsck pass 2.

There's also a function to estimate the readahead given a FS.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
configure
configure.in
e2fsck/Makefile.in
e2fsck/e2fsck.h
e2fsck/readahead.c [new file with mode: 0644]
e2fsck/util.c
lib/config.h.in
lib/ext2fs/dblist.c
lib/ext2fs/ext2fs.h