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 <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
Miklos Szeredi 2026-09-21 14:13:11 +02:00
parent bbe2d73a82
commit b776cbe24c
2 changed files with 1 additions and 12 deletions

View File

@ -10,7 +10,7 @@
#include <linux/file.h>
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;

View File

@ -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);