mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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:
parent
bbe2d73a82
commit
b776cbe24c
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user