projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a97629
)
9p: v9fs_vfs_rename incorrect clunk order
author
Latchesar Ionkov
<lucho@ionkov.net>
Tue, 23 Oct 2007 18:48:33 +0000
(13:48 -0500)
committer
Eric Van Hensbergen
<ericvh@gmail.com>
Tue, 23 Oct 2007 18:48:33 +0000
(13:48 -0500)
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>
fs/9p/vfs_inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/9p/vfs_inode.c
b/fs/9p/vfs_inode.c
index 175b4d9bf3f88af4059caaa368aac3ad761abd37..23581bcb599b2f7d6031644de612742512e218e3 100644
(file)
--- 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,
retval = p9_client_wstat(oldfid, &wstat);
clunk_newdir:
- p9_client_clunk(
old
dirfid);
+ p9_client_clunk(
new
dirfid);
clunk_olddir:
- p9_client_clunk(
new
dirfid);
+ p9_client_clunk(
old
dirfid);
done:
return retval;