summaryrefslogtreecommitdiff
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2026-03-17 12:00:29 +0100
committerMiklos Szeredi <mszeredi@redhat.com>2026-06-15 14:06:15 +0200
commita73a7883b40ea0a123409ef39a072218401ac5d8 (patch)
tree8bc7a95ea23aebdadc8e5297d0d8cfa0cb9839d6 /fs/fuse/dev.c
parentf14348575dec6430c37f1bc9b6c7652bbaa7169f (diff)
downloadlinux-next-a73a7883b40ea0a123409ef39a072218401ac5d8.tar.gz
linux-next-a73a7883b40ea0a123409ef39a072218401ac5d8.zip
fuse: add struct fuse_chan
The goal is to separate transport layer stuff out from struct fuse_conn, leaving just the filesystem related members. Add a new object referenced from fuse_conn. This patch just implements the allocation and freeing of this object. Following patches will move transport related members from fuse_conn to fuse_chan. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 0359a7b10393..c3d7eb481974 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -6,6 +6,7 @@
See the file COPYING.
*/
+#include "dev.h"
#include "dev_uring_i.h"
#include "fuse_i.h"
#include "fuse_dev_i.h"
@@ -320,6 +321,18 @@ const struct fuse_iqueue_ops fuse_dev_fiq_ops = {
};
EXPORT_SYMBOL_GPL(fuse_dev_fiq_ops);
+void fuse_chan_free(struct fuse_chan *fch)
+{
+ kfree(fch);
+}
+EXPORT_SYMBOL_GPL(fuse_chan_free);
+
+struct fuse_chan *fuse_chan_new(void)
+{
+ return kzalloc_obj(struct fuse_chan);
+}
+EXPORT_SYMBOL_GPL(fuse_chan_new);
+
static void fuse_send_one(struct fuse_iqueue *fiq, struct fuse_req *req)
{
req->in.h.len = sizeof(struct fuse_in_header) +