Christoph Hellwig cfa853e47d [XFS] remove manual lookup from xfs_rename and simplify locking
->rename already gets the target inode passed if it exits. Pass it down to
xfs_rename so that we can avoid looking it up again. Also simplify locking
as the first lock section in xfs_rename can go away now: the isdir is an
invariant over the lifetime of the inode, and new_parent and the nlink
check are namespace topology protected by i_mutex in the VFS. The projid
check needs to move into the second lock section anyway to not be racy.

Also kill the now unused xfs_dir_lookup_int and remove the now-unused
first_locked argumet to xfs_lock_inodes.

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

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
2008-04-29 15:54:12 +10:00
..
2008-04-29 15:54:02 +10:00
2008-04-18 12:04:19 +10:00
2008-04-29 15:53:16 +10:00
2008-02-07 18:22:38 +11:00
2008-02-07 16:46:39 +11:00
2007-07-14 15:28:50 +10:00
2008-04-18 12:04:19 +10:00
2007-10-16 11:40:24 +10:00
2008-04-29 15:54:02 +10:00
2008-02-07 18:14:38 +11:00
2008-02-07 18:14:38 +11:00
2008-02-07 18:14:38 +11:00
2007-10-15 16:49:49 +10:00
2007-10-15 16:49:49 +10:00
2007-10-15 16:49:49 +10:00
2008-02-07 16:44:23 +11:00
2008-04-29 15:54:02 +10:00
2008-04-29 15:54:02 +10:00
2008-04-29 15:54:02 +10:00
2008-04-29 15:54:02 +10:00
2008-04-18 12:02:30 +10:00
2008-02-07 18:14:38 +11:00
2008-02-07 16:47:15 +11:00
2008-04-29 15:54:02 +10:00
2008-02-07 18:14:38 +11:00
2008-02-07 18:24:00 +11:00
2008-04-18 12:04:29 +10:00