aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_inode.c
diff options
context:
space:
mode:
authorLatchesar Ionkov <lucho@ionkov.net>2007-10-23 14:48:33 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2007-10-23 14:48:33 -0400
commit22150c4f0f02619c256f35db2f1ec912549b4ca5 (patch)
tree3afeade940b21ac5ba7534fe430086de15067d35 /fs/9p/vfs_inode.c
parent0a976297e1f57a6d156d3f8ed7f10c64beb031a4 (diff)
9p: v9fs_vfs_rename incorrect clunk order
In v9fs_vfs_rename function labels don't match the fids that are clunked. The correct clunk order is clunking newdirfid first and then olddirfid next. Signed-off-by: Latchesar Ionkov <lucho@ionkov.net> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r--fs/9p/vfs_inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 175b4d9bf3f8..23581bcb599b 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -687,10 +687,10 @@ v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry,
687 retval = p9_client_wstat(oldfid, &wstat); 687 retval = p9_client_wstat(oldfid, &wstat);
688 688
689clunk_newdir: 689clunk_newdir:
690 p9_client_clunk(olddirfid); 690 p9_client_clunk(newdirfid);
691 691
692clunk_olddir: 692clunk_olddir:
693 p9_client_clunk(newdirfid); 693 p9_client_clunk(olddirfid);
694 694
695done: 695done:
696 return retval; 696 return retval;