summaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2019-08-29 11:01:20 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2019-09-12 14:59:41 +0200
commit783863d6476ce9f27fa87227f76ae9134caf43fa (patch)
tree98acd92b40d5a92fa7afbd704ed39d42f639c932 /fs/fuse/fuse_i.h
parentfuse: delete dentry if timeout is zero (diff)
downloadlinux-783863d6476ce9f27fa87227f76ae9134caf43fa.tar.xz
linux-783863d6476ce9f27fa87227f76ae9134caf43fa.zip
fuse: dissociate DESTROY from fuseblk
Allow virtio-fs to also send DESTROY request. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index fed68a427a4c..48d214df9172 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -467,6 +467,7 @@ struct fuse_fs_context {
bool group_id_present:1;
bool default_permissions:1;
bool allow_other:1;
+ bool destroy:1;
unsigned int max_read;
unsigned int blksize;
const char *subtype;
@@ -946,6 +947,13 @@ void fuse_send_init(struct fuse_conn *fc);
int fuse_fill_super_common(struct super_block *sb, struct fuse_fs_context *ctx);
/**
+ * Disassociate fuse connection from superblock and kill the superblock
+ *
+ * Calls kill_anon_super(), do not use with bdev mounts.
+ */
+void fuse_kill_sb_anon(struct super_block *sb);
+
+/**
* Add connection to control filesystem
*/
int fuse_ctl_add_conn(struct fuse_conn *fc);
@@ -1057,5 +1065,6 @@ unsigned int fuse_len_args(unsigned int numargs, struct fuse_arg *args);
* Get the next unique ID for a request
*/
u64 fuse_get_unique(struct fuse_iqueue *fiq);
+void fuse_free_conn(struct fuse_conn *fc);
#endif /* _FS_FUSE_I_H */