[GFS2] Fix double locking problem in rename
commitd9d1ca30505c6fed867e1724b16fdad0c281d7d1
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 21 Jun 2006 19:38:17 +0000 (21 15:38 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 21 Jun 2006 19:38:17 +0000 (21 15:38 -0400)
treeedcba6e6afe04246af51a1884fc6ad59b7f14de6
parentbf9f424d9acf461fabcb0e9f47b356e08186d91f
[GFS2] Fix double locking problem in rename

The rename inode operation was trying to lock the same
inode twice in the case of renaming with the source
and destination directories the same. We now test for
this and just lock once.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_inode.c