xfs: batch inode reclaim lookup
authorDave Chinner <dchinner@redhat.com>
Fri, 24 Sep 2010 09:51:50 +0000 (19:51 +1000)
committerAlex Elder <aelder@sgi.com>
Mon, 18 Oct 2010 20:07:54 +0000 (15:07 -0500)
commite3a20c0b02e1704ab115dfa9d012caf0fbc45ed0
tree77cd4c9129b8b6fc85b0e9005a82088df9ed752f
parent78ae5256768b91f25ce7a4eb9f56d563e302cc10
xfs: batch inode reclaim lookup

Batch and optimise the per-ag inode lookup for reclaim to minimise
scanning overhead. This involves gang lookups on the radix trees to
get multiple inodes during each tree walk, and tighter validation of
what inodes can be reclaimed without blocking befor we take any
locks.

This is based on ideas suggested in a proof-of-concept patch
posted by Nick Piggin.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_sync.c