projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c58c72d
)
9p: Remove unnecessary variable for old fids while walking from d_parent
author
Tyler Hicks
<tyhicks@linux.microsoft.com>
Fri, 27 May 2022 00:00:02 +0000
(19:00 -0500)
committer
Dominique Martinet
<dominique.martinet@atmark-techno.com>
Sat, 2 Jul 2022 09:52:21 +0000
(18:52 +0900)
Remove the ofid variable that's local to the conditional block in favor
of the old_fid variable that's local to the entire function.
Link:
https://lkml.kernel.org/r/20220527000003.355812-5-tyhicks@linux.microsoft.com
Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.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
e9cea69
..
7ddfed9
100644
(file)
--- a/
fs/9p/fid.c
+++ b/
fs/9p/fid.c
@@
-169,10
+169,10
@@
static struct p9_fid *v9fs_fid_lookup_with_uid(struct dentry *dentry,
fid = v9fs_fid_find(ds, uid, any);
if (fid) {
/* Found the parent fid do a lookup with that */
-
struct p9_fid *o
fid = fid;
+
old_
fid = fid;
- fid = p9_client_walk(ofid, 1, &dentry->d_name.name, 1);
- p9_client_clunk(ofid);
+ fid = p9_client_walk(o
ld_
fid, 1, &dentry->d_name.name, 1);
+ p9_client_clunk(o
ld_
fid);
goto fid_out;
}
up_read(&v9ses->rename_sem);