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, 29 Nov 2012 13:05:59 +0000 (06:05 -0700)
commitf1ac265ffad4bb5c530e25ddab394a2f3e311178
tree477de8d1a896da2bdb1105222afc6046a92e74a6
parent64430c06457edaa383e3a1d6b105c15a6ed30f61
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