From: Liu Bo Date: Wed, 17 Apr 2019 02:03:16 +0800 Message-Id: <20190416180322.65113-4-bo.liu@linux.alibaba.com> In-Reply-To: <20190416180322.65113-1-bo.liu@linux.alibaba.com> References: <20190416180322.65113-1-bo.liu@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Virtio-fs] [PATCH 3/9] fuse: export fuse_drop_waiting() List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: virtio-fs@redhat.com virtio-fs will need to do ref count against FORGET requests from outside fs/fuse/dev.c. Make the symbol visible. Reviewed-by: Liu Bo Reviewed-by: Joseph Qi Signed-off-by: Xiaoguang Wang --- fs/fuse/dev.c | 3 ++- fs/fuse/fuse_i.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 07ae706..7e6afd0 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -128,7 +128,7 @@ static bool fuse_block_alloc(struct fuse_conn *fc, bool for_background) return !fc->initialized || (for_background && fc->blocked); } -static void fuse_drop_waiting(struct fuse_conn *fc) +void fuse_drop_waiting(struct fuse_conn *fc) { if (fc->connected) { atomic_dec(&fc->num_waiting); @@ -137,6 +137,7 @@ static void fuse_drop_waiting(struct fuse_conn *fc) wake_up_all(&fc->blocked_waitq); } } +EXPORT_SYMBOL_GPL(fuse_drop_waiting); static struct fuse_req *__fuse_get_req(struct fuse_conn *fc, unsigned npages, bool for_background) diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 2c32846..171aee8 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -1199,6 +1199,7 @@ ssize_t fuse_getxattr(struct inode *inode, const char *name, void *value, * Get the next unique ID for a request */ u64 fuse_get_unique(struct fuse_iqueue *fiq); +void fuse_drop_waiting(struct fuse_conn *fc); void fuse_dax_free_mem_worker(struct work_struct *work); void fuse_removemapping(struct inode *inode); -- 1.8.3.1