xfs: stop using xfs_trans_iget in the RT allocator
authorChristoph Hellwig <hch@infradead.org>
Sun, 13 Feb 2011 13:25:31 +0000 (13:25 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 23 Feb 2011 02:30:21 +0000 (20:30 -0600)
commit1050c71e2925ab0cb025e4c89e08b15529a1ee36
treeeacaa53e025ab0da4793f1c3c09fc9e15ebee6a5
parent5d15765594eeb5d82c5630b3428ea0ac4f7d3c31
xfs: stop using xfs_trans_iget in the RT allocator

During mount we establish references to the RT inodes, which we keep for
the lifetime of the filesystem.  Instead of using xfs_trans_iget to grab
additional references when adding RT inodes to transactions use the
combination of xfs_ilock and xfs_trans_ijoin_ref, which archives the same
end result with less overhead.

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