fuse: store fuse_conn in fuse_req
authorMax Reitz <mreitz@redhat.com>
Mon, 20 Apr 2020 15:54:38 +0000 (17:54 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 18 Sep 2020 13:17:40 +0000 (15:17 +0200)
commit24754db2728a87c513cc480c70c09072a7a40ba6
treebca618b8402f54f11dd02f148b1cc1f1dd480607
parentc6ff213fe5b8696c9539a1b34ff03de9306dfff9
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>
fs/fuse/dev.c
fs/fuse/fuse_i.h