Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a3b2157e
Commit
a3b2157e
authored
Feb 28, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9p: make sure ->lookup() adds fid to the right dentry
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
7b5be621
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
fs/9p/vfs_inode.c
fs/9p/vfs_inode.c
+5
-2
No files found.
fs/9p/vfs_inode.c
View file @
a3b2157e
...
...
@@ -824,7 +824,6 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
p9_client_clunk
(
fid
);
return
ERR_CAST
(
inode
);
}
v9fs_fid_add
(
dentry
,
fid
);
/*
* If we had a rename on the server and a parallel lookup
* for the new name, then make sure we instantiate with
...
...
@@ -833,7 +832,11 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
* k/b.
*/
res
=
d_materialise_unique
(
dentry
,
inode
);
if
(
IS_ERR
(
res
))
if
(
!
res
)
v9fs_fid_add
(
dentry
,
fid
);
else
if
(
!
IS_ERR
(
res
))
v9fs_fid_add
(
res
,
fid
);
else
p9_client_clunk
(
fid
);
return
res
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment