xfs: factor buffer reading from xfs_dir2_leaf_getdents
authorDave Chinner <dchinner@redhat.com>
Fri, 22 Jun 2012 08:50:15 +0000 (18:50 +1000)
committerBen Myers <bpm@sgi.com>
Sun, 1 Jul 2012 19:50:08 +0000 (14:50 -0500)
commit9b73bd7b61f320ffe7bda0126592ccf836d7ef90
tree2002801ee1d14b9a16487254562a9da2f0d7da71
parent1d9025e56143c0c4aebebdb62e46618d3d284218
xfs: factor buffer reading from xfs_dir2_leaf_getdents

The buffer reading code in xfs_dir2_leaf_getdents is complex and difficult to
follow due to the readahead and all the context is carries. it is also badly
indented and so difficult to read. Factor it out into a separate function to
make it easier to understand and optimise in future patches.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_dir2_leaf.c
This page took 0.026408 seconds and 5 git commands to generate.