projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
772712c
)
fs/9p: fix indentation and Add missing a blank line after declaration
author
Sohaib Mohamed
<sohaib.amhmd@gmail.com>
Thu, 30 Sep 2021 22:04:20 +0000
(
00:04
+0200)
committer
Dominique Martinet
<asmadeus@codewreck.org>
Wed, 3 Nov 2021 08:45:03 +0000
(17:45 +0900)
Warning found by checkpatch.pl
Link:
http://lkml.kernel.org/r/20210930220420.44150-1-sohaib.amhmd@gmail.com
Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
fs/9p/fid.c
patch
|
blob
|
history
diff --git
a/fs/9p/fid.c
b/fs/9p/fid.c
index b8863dd0de5cca569da550414f6c6fb446c6dda8..6aab046c98e291ebf701a26c46614baa4a1a427f 100644
(file)
--- a/
fs/9p/fid.c
+++ b/
fs/9p/fid.c
@@
-103,6
+103,7
@@
static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any)
/* we'll recheck under lock if there's anything to look in */
if (!ret && dentry->d_fsdata) {
struct hlist_head *h = (struct hlist_head *)&dentry->d_fsdata;
+
spin_lock(&dentry->d_lock);
hlist_for_each_entry(fid, h, dlist) {
if (any || uid_eq(fid->uid, uid)) {
@@
-185,7
+186,7
@@
static struct p9_fid *v9fs_fid_lookup_with_uid(struct dentry *dentry,
return ERR_PTR(-EPERM);
if (v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses))
-
uname = NULL;
+ uname = NULL;
else
uname = v9ses->uname;