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>
Fri, 21 Mar 2014 09:54:48 +0000 (03:54 -0600)
commita422465fd842b354a2b59c528785761fd55ceeed
tree23bccf0d1713048c5640a731f1741a8c5aae10a3
parent320fd5b4a9687afe877d594686c1418eea9dc848
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/unix_io.c