aboutsummaryrefslogtreecommitdiff
path: root/fs/9p
diff options
context:
space:
mode:
authorGravatar Jeff Layton <jlayton@kernel.org> 2024-01-31 18:01:46 -0500
committerGravatar Christian Brauner <brauner@kernel.org> 2024-02-05 13:11:35 +0100
commit75a1bbe60a7425fcaa670bff58b8589b1f880810 (patch)
tree232f706a55f7d1cdecea2fc77c5bcbeab57b3ff0 /fs/9p
parentfilelock: add some new helper functions (diff)
downloadlinux-75a1bbe60a7425fcaa670bff58b8589b1f880810.tar.gz
linux-75a1bbe60a7425fcaa670bff58b8589b1f880810.tar.bz2
linux-75a1bbe60a7425fcaa670bff58b8589b1f880810.zip
9p: rename fl_type variable in v9fs_file_do_lock
In later patches, we're going to introduce some macros that conflict with the variable name here. Rename it. Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/20240131-flsplit-v3-5-c6129007ee8d@kernel.org Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
index bae330c2f0cf..3df8aa1b5996 100644
--- a/fs/9p/vfs_file.c
+++ b/fs/9p/vfs_file.c
@@ -121,7 +121,6 @@ static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl)
struct p9_fid *fid;
uint8_t status = P9_LOCK_ERROR;
int res = 0;
- unsigned char fl_type;
struct v9fs_session_info *v9ses;
fid = filp->private_data;
@@ -208,11 +207,12 @@ out_unlock:
* it locally
*/
if (res < 0 && fl->fl_type != F_UNLCK) {
- fl_type = fl->fl_type;
+ unsigned char type = fl->fl_type;
+
fl->fl_type = F_UNLCK;
/* Even if this fails we want to return the remote error */
locks_lock_file_wait(filp, fl);
- fl->fl_type = fl_type;
+ fl->fl_type = type;
}
if (flock.client_id != fid->clnt->name)
kfree(flock.client_id);