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>
Wed, 30 May 2012 22:15:06 +0000 (16:15 -0600)
commit5d045fd70cee143467ba3f84b5824534dd0e1921
tree5be7247ad509a302a43663cd3078fa31ee9ed654
parentb136df99d792fdfce309d1f1d8e59f67977ae7af
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