summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2019-03-07 00:51:39 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2019-09-12 15:59:40 +0300
commit95a84cdb11c26315a6d34664846f82c438c961a1 (patch)
treec93a05ed64ac3fa44f5640ac529288cc728054f4
parent14d46d7abc3973a47e8eb0eb5eb87ee8d910a505 (diff)
downloadlinux-95a84cdb11c26315a6d34664846f82c438c961a1.tar.xz
fuse: export fuse_send_init_request()
This will be used by virtio-fs to send init request to fuse server after initialization of virt queues. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r--fs/fuse/fuse_i.h1
-rw-r--r--fs/fuse/inode.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 39ef981a618c..7192080a06d0 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -867,6 +867,7 @@ void fuse_conn_put(struct fuse_conn *fc);
struct fuse_dev *fuse_dev_alloc(struct fuse_conn *fc);
void fuse_dev_free(struct fuse_dev *fud);
+void fuse_send_init(struct fuse_conn *fc);
/**
* Add connection to control filesystem
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 4404d21649ff..5d455f4d6195 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -972,7 +972,7 @@ static void process_init_reply(struct fuse_conn *fc, struct fuse_args *args,
wake_up_all(&fc->blocked_waitq);
}
-static void fuse_send_init(struct fuse_conn *fc)
+void fuse_send_init(struct fuse_conn *fc)
{
struct fuse_init_args *ia;
@@ -1009,6 +1009,7 @@ static void fuse_send_init(struct fuse_conn *fc)
if (fuse_simple_background(fc, &ia->args, GFP_KERNEL) != 0)
process_init_reply(fc, &ia->args, -ENOTCONN);
}
+EXPORT_SYMBOL_GPL(fuse_send_init);
static void fuse_free_conn(struct fuse_conn *fc)
{