mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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:
parent
bf9932623d
commit
7809dc217a
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user