From b776cbe24cc1b79c7f5101762b0069b3f48b6a4b Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 21 Sep 2026 14:13:11 +0200 Subject: [PATCH] fuse: make fuse_backing_get() static Since it's not used outside of backing.c. Also remove the fuse_backing_lookup() stub from fuse_i.h, since it's called only from passthrough.c. Reviewed-by: Amir Goldstein Signed-off-by: Miklos Szeredi --- fs/fuse/backing.c | 2 +- fs/fuse/fuse_i.h | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/fs/fuse/backing.c b/fs/fuse/backing.c index 472b6afa7dff..433fa3098d71 100644 --- a/fs/fuse/backing.c +++ b/fs/fuse/backing.c @@ -10,7 +10,7 @@ #include -struct fuse_backing *fuse_backing_get(struct fuse_backing *fb) +static struct fuse_backing *fuse_backing_get(struct fuse_backing *fb) { if (fb && refcount_inc_not_zero(&fb->count)) return fb; diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 6af2603b522a..8546855386b5 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -1267,24 +1267,13 @@ void fuse_file_release(struct inode *inode, struct fuse_file *ff, /* backing.c */ #ifdef CONFIG_FUSE_PASSTHROUGH -struct fuse_backing *fuse_backing_get(struct fuse_backing *fb); void fuse_backing_put(struct fuse_backing *fb); struct fuse_backing *fuse_backing_lookup(struct fuse_conn *fc, int backing_id); #else -static inline struct fuse_backing *fuse_backing_get(struct fuse_backing *fb) -{ - return NULL; -} - static inline void fuse_backing_put(struct fuse_backing *fb) { } -static inline struct fuse_backing *fuse_backing_lookup(struct fuse_conn *fc, - int backing_id) -{ - return NULL; -} #endif void fuse_backing_files_init(struct fuse_conn *fc);