[XFS] kill usesless IHOLD calls in xfs_rename
authorChristoph Hellwig <hch@infradead.org>
Tue, 22 Apr 2008 07:34:12 +0000 (17:34 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Tue, 29 Apr 2008 05:54:24 +0000 (15:54 +1000)
commit1ac74e01df959e3e91baded7c83399372af945a2
tree9d72cbcae16eaad8c0798a03cb9aa0c74249d795
parentcfa853e47df4fbee441ac0ac3fb592f076233145
[XFS] kill usesless IHOLD calls in xfs_rename

Similar to to the previous patch for remove and rmdir only grab a
reference to inodes when we join them to transaction to balance the
decrement on transaction completion. Everything else it taken care of by
the VFS.

Note that the old case had leaks of inode count when src == target or src
or target == one of the parent inodes, but these cases are fortunately
already rejected by the VFS.

SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:30904a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_rename.c