summary refs log tree commit diff
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2020-04-20 17:54:38 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2020-09-18 15:17:40 +0200
commit24754db2728a87c513cc480c70c09072a7a40ba6 (patch)
treebca618b8402f54f11dd02f148b1cc1f1dd480607 /fs/fuse/fuse_i.h
parentc6ff213fe5b8696c9539a1b34ff03de9306dfff9 (diff)
downloadlinux-24754db2728a87c513cc480c70c09072a7a40ba6.tar.gz
fuse: store fuse_conn in fuse_req
Every fuse_req belongs to a fuse_conn.  Right now, we always know which
fuse_conn that is based on the respective device, but we want to allow
multiple (sub)mounts per single connection, and then the corresponding
filesystem is not going to be so trivial to obtain.

Storing a pointer to the associated fuse_conn in every fuse_req will
allow us to trivially find any request's superblock (and thus
filesystem) even then.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index dbaae2f6c73e..776f92d3c0c5 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -374,6 +374,9 @@ struct fuse_req {
 	/** virtio-fs's physically contiguous buffer for in and out args */
 	void *argbuf;
 #endif
+
+	/** fuse_conn this request belongs to */
+	struct fuse_conn *fc;
 };
 
 struct fuse_iqueue;