summaryrefslogtreecommitdiff
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2020-11-11 19:22:31 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2020-11-11 19:22:31 +0300
commitb19d3d00d662cfb8bfdc809ec90344ec58b0bf31 (patch)
tree2fe986c5dd9b1e29120a3fcbe1333222754a4002 /fs/fuse/fuse_i.h
parent66ab33bf6d4341574f88b511e856a73f6f2a921e (diff)
downloadlinux-b19d3d00d662cfb8bfdc809ec90344ec58b0bf31.tar.xz
virtiofs: simplify sb setup
Currently when acquiring an sb for virtiofs fuse_mount_get() is being called from virtio_fs_set_super() if a new sb is being filled and fuse_mount_put() is called unconditionally after sget_fc() returns. The exact same result can be obtained by checking whether fs_contex->s_fs_info was set to NULL (ref trasferred to sb->s_fs_info) and only calling fuse_mount_put() if the ref wasn't transferred (error or matching sb found). This allows getting rid of virtio_fs_set_super() and fuse_mount_get(). Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index d51598017d13..c036c4dc714a 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -1025,11 +1025,6 @@ void fuse_conn_init(struct fuse_conn *fc, struct fuse_mount *fm,
void fuse_conn_put(struct fuse_conn *fc);
/**
- * Acquire reference to fuse_mount
- */
-struct fuse_mount *fuse_mount_get(struct fuse_mount *fm);
-
-/**
* Release reference to fuse_mount
*/
void fuse_mount_put(struct fuse_mount *fm);