Whamcloud - gitweb
ext2fs: add readahead method to improve scanning
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 13 Apr 2012 18:58:53 +0000 (12:58 -0600)
committerAndreas Dilger <adilger@dilger.ca>
Fri, 28 Aug 2015 17:08:59 +0000 (11:08 -0600)
commit6791c80e92434a8da01f9619ace177ec14049f15
tree80160a3762391f30a031eeb2ba6a3688d0e579a2
parentc0128d8df701e662e1bc5cb6c1d05d3e4575e3f6
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>
lib/ext2fs/ext2_io.h
lib/ext2fs/io_manager.c
lib/ext2fs/unix_io.c