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 06:10:09 +0000 (00:10 -0600)
commitdaa5c2a72c8005026fed281db8f360296c7194c9
tree451bc21d42f50e101c57e7202d575b841aad61b5
parent0f9e02f255f74796c4097785bc9dcbda45dba0ce
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