]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
fuse: remove unused 'inode' parameter in fuse_passthrough_open
authorChunsheng Luo <luochunsheng@ustc.edu>
Wed, 30 Jul 2025 13:06:03 +0000 (21:06 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 27 Aug 2025 12:29:44 +0000 (14:29 +0200)
The 'inode' parameter in fuse_passthrough_open() is never referenced
in the function implementation.

Signed-off-by: Chunsheng Luo <luochunsheng@ustc.edu>
Reviewed-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/fuse_i.h
fs/fuse/iomode.c
fs/fuse/passthrough.c

index d68eea4dd743ecdd1df632be781fed34ae122461..486fa550c9510e4f26579bdeaaec09f495f21afb 100644 (file)
@@ -1555,9 +1555,7 @@ void fuse_backing_files_free(struct fuse_conn *fc);
 int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map);
 int fuse_backing_close(struct fuse_conn *fc, int backing_id);
 
-struct fuse_backing *fuse_passthrough_open(struct file *file,
-                                          struct inode *inode,
-                                          int backing_id);
+struct fuse_backing *fuse_passthrough_open(struct file *file, int backing_id);
 void fuse_passthrough_release(struct fuse_file *ff, struct fuse_backing *fb);
 
 static inline struct file *fuse_file_passthrough(struct fuse_file *ff)
index c99e285f3183ef92f7662ac84956ad1a03315ea9..3728933188f307a07e019e0d64c05735ebbbe934 100644 (file)
@@ -177,8 +177,7 @@ static int fuse_file_passthrough_open(struct inode *inode, struct file *file)
            (ff->open_flags & ~FOPEN_PASSTHROUGH_MASK))
                return -EINVAL;
 
-       fb = fuse_passthrough_open(file, inode,
-                                  ff->args->open_outarg.backing_id);
+       fb = fuse_passthrough_open(file, ff->args->open_outarg.backing_id);
        if (IS_ERR(fb))
                return PTR_ERR(fb);
 
index eb97ac009e75d97f0cabb0652b65a21ddaa913ad..0bb80112741a66405ec48341a8529032f01c9e82 100644 (file)
@@ -306,9 +306,7 @@ out:
  *
  * Returns an fb object with elevated refcount to be stored in fuse inode.
  */
-struct fuse_backing *fuse_passthrough_open(struct file *file,
-                                          struct inode *inode,
-                                          int backing_id)
+struct fuse_backing *fuse_passthrough_open(struct file *file, int backing_id)
 {
        struct fuse_file *ff = file->private_data;
        struct fuse_conn *fc = ff->fm->fc;