fuse: add back pointer from fuse_chan to fuse_conn

Will be needed by callbacks from the transport layer to the fs layer.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
Miklos Szeredi 2026-03-18 17:49:01 +01:00
parent bf9932623d
commit 7809dc217a
2 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,9 @@ struct fuse_chan {
*/
spinlock_t lock;
/* back pointer: fc->chan->conn == fc */
struct fuse_conn *conn;
/** Input queue */
struct fuse_iqueue iq;

View File

@ -995,6 +995,7 @@ void fuse_conn_init(struct fuse_conn *fc, struct fuse_mount *fm,
INIT_LIST_HEAD(&fc->mounts);
list_add(&fm->fc_entry, &fc->mounts);
fm->fc = fc;
fch->conn = fc;
fc->chan = fch;
}
EXPORT_SYMBOL_GPL(fuse_conn_init);