Browse Source

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>
Latchesar Ionkov 17 years ago
parent
commit
22150c4f0f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fs/9p/vfs_inode.c

+ 2 - 2
fs/9p/vfs_inode.c

@@ -687,10 +687,10 @@ v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry,
 	retval = p9_client_wstat(oldfid, &wstat);
 	retval = p9_client_wstat(oldfid, &wstat);
 
 
 clunk_newdir:
 clunk_newdir:
-	p9_client_clunk(olddirfid);
+	p9_client_clunk(newdirfid);
 
 
 clunk_olddir:
 clunk_olddir:
-	p9_client_clunk(newdirfid);
+	p9_client_clunk(olddirfid);
 
 
 done:
 done:
 	return retval;
 	return retval;