Whamcloud - gitweb
ext2fs: add readahead method to improve scanning
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 13 Apr 2012 18:58:53 +0000 (12:58 -0600)
committerAndreas Dilger <andreas.dilger@intel.com>
Thu, 25 Apr 2013 07:09:56 +0000 (01:09 -0600)
commit9334c697539c79bf85fe03ce6aea90c7c648611b
treec84a48ab9c4e89d533e5587ffd88e52956afa5f0
parent65ca9493fb7a23326be39cc427e1446db73a5b8e
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/unix_io.c