提交 22150c4f 编写于 作者: L Latchesar Ionkov 提交者: Eric Van Hensbergen

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: NLatchesar Ionkov <lucho@ionkov.net>
Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
上级 0a976297
......@@ -687,10 +687,10 @@ v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry,
retval = p9_client_wstat(oldfid, &wstat);
clunk_newdir:
p9_client_clunk(olddirfid);
p9_client_clunk(newdirfid);
clunk_olddir:
p9_client_clunk(newdirfid);
p9_client_clunk(olddirfid);
done:
return retval;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册