xfs: split out inode walk inode grabbing
authorDave Chinner <dchinner@redhat.com>
Tue, 28 Sep 2010 02:28:06 +0000 (12:28 +1000)
committerAlex Elder <aelder@sgi.com>
Mon, 18 Oct 2010 20:07:52 +0000 (15:07 -0500)
commite13de955ca67b0bd1cec9a2f9352a3053065bf7f
treeb3b132b1e13791f8766da9fab4bad336f87775cc
parent65d0f20533c503b50bd5e7e86434512af7761eea
xfs: split out inode walk inode grabbing

When doing read side inode cache walks, the code to validate and
grab an inode is common to all callers. Split it out of the execute
callbacks in preparation for batching lookups. Similarly, split out
the inode reference dropping from the execute callbacks into the
main lookup look to be symmetric with the grab.

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
fs/xfs/quota/xfs_qm_syscalls.c