Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fuse: remove unused 'inode' parameter in fuse_passthrough_open

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>

authored by

Chunsheng Luo and committed by
Miklos Szeredi
8c14f208 7dbe6442

+3 -8
+1 -3
fs/fuse/fuse_i.h
··· 1555 1555 int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map); 1556 1556 int fuse_backing_close(struct fuse_conn *fc, int backing_id); 1557 1557 1558 - struct fuse_backing *fuse_passthrough_open(struct file *file, 1559 - struct inode *inode, 1560 - int backing_id); 1558 + struct fuse_backing *fuse_passthrough_open(struct file *file, int backing_id); 1561 1559 void fuse_passthrough_release(struct fuse_file *ff, struct fuse_backing *fb); 1562 1560 1563 1561 static inline struct file *fuse_file_passthrough(struct fuse_file *ff)
+1 -2
fs/fuse/iomode.c
··· 177 177 (ff->open_flags & ~FOPEN_PASSTHROUGH_MASK)) 178 178 return -EINVAL; 179 179 180 - fb = fuse_passthrough_open(file, inode, 181 - ff->args->open_outarg.backing_id); 180 + fb = fuse_passthrough_open(file, ff->args->open_outarg.backing_id); 182 181 if (IS_ERR(fb)) 183 182 return PTR_ERR(fb); 184 183
+1 -3
fs/fuse/passthrough.c
··· 306 306 * 307 307 * Returns an fb object with elevated refcount to be stored in fuse inode. 308 308 */ 309 - struct fuse_backing *fuse_passthrough_open(struct file *file, 310 - struct inode *inode, 311 - int backing_id) 309 + struct fuse_backing *fuse_passthrough_open(struct file *file, int backing_id) 312 310 { 313 311 struct fuse_file *ff = file->private_data; 314 312 struct fuse_conn *fc = ff->fm->fc;