]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: plug directory buffer readahead
authorDave Chinner <dchinner@redhat.com>
Thu, 27 Jun 2013 06:04:47 +0000 (16:04 +1000)
committerBen Myers <bpm@sgi.com>
Thu, 27 Jun 2013 18:27:24 +0000 (13:27 -0500)
commit9b5b5206345473990f2cd220e463408d8bea32a8
tree5c5d3c93612963b5f6fe5158ac6a3a5ea26e7b7c
parentf16bd48ddde2cae0b98064df27edb69f939bdee6
xfs: plug directory buffer readahead

Similar to bulkstat inode chunk readahead, we need to plug directory
data buffer readahead during getdents to ensure that we can merge
adjacent readahead requests and sort out of order requests optimally
before they are dispatched. This improves the readahead efficiency
and reduces the IO load it generates as the IO patterns are
significantly better for both contiguous and fragmented directories.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_dir2_leaf.c