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>
Tue, 10 May 2016 05:12:33 +0000 (23:12 -0600)
commit77a392af9af8c886ae9b03587e8b13f44b7c8c90
tree69b845d8a57dbe2654391481492c0b7f568dbff7
parentb6d8452664120cf4fdd016808f336ae85184adf2
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/io_manager.c
lib/ext2fs/unix_io.c