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 <andreas.dilger@intel.com>
Thu, 27 Aug 2015 23:40:14 +0000 (17:40 -0600)
commit26031b9a1cde25da0381d2405819d8a60c9a1bc2
tree86662cbcf92c391fe1d3ce95acbf39abe3475623
parent3cbd1ceb9cff9c45a1584c0539b2e8b439a00ae1
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