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 <adilger@whamcloud.com>
Thu, 9 Aug 2012 08:13:31 +0000 (02:13 -0600)
commit327fef80973190603a3d4072f66888194820274e
tree9533d629a041935cd96b22284ce6812ad3a1e3ce
parent4aeb828a65f298e322a58092f7cdea0609c7d5a7
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 <adilger@whamcloud.com>
lib/ext2fs/ext2_io.h
lib/ext2fs/unix_io.c