Whamcloud - gitweb
ext2fs: add readahead method to improve scanning
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 19 Sep 2014 16:15:21 +0000 (12:15 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 19 Sep 2014 16:16:08 +0000 (12:16 -0400)
commitca209dc62512a0b4b68e9abf17399599b0d823ac
treef1a3d9a30551743222c179246d74e9ad88b86903
parent53c5d6062e2c13bf180605bf84147e06018794e2
ext2fs: add readahead method to improve scanning

Add a readahead method for prefetching ranges of disk blocks.  This is
useful for inode table scanning, and other large contiguous ranges of
blocks, and may also prove useful for random block prefetch, since it
will allow reordering of the IO without waiting synchronously for the
reads to complete.

It is currently using the posix_fadvise(POSIX_FADV_WILLNEED)
interface, as this proved most efficient during our testing.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext2_io.h
lib/ext2fs/io_manager.c
lib/ext2fs/test_io.c
lib/ext2fs/unix_io.c