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>
Thu, 24 Jul 2014 22:00:06 +0000 (16:00 -0600)
commitdb75d32e59ffb73aa3b9c9f1c7638c1b57568ccf
tree38bdb259d65fa5ebfe3fb1ed632a7cf83fc0bc16
parent640b3a3c3d8cad678d0caf79b6138bd7f46afdef
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