summaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2019-06-05 15:50:43 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2019-09-12 14:59:40 +0200
commit4388c5aac4bae5c83a2c66882043942002ba09a2 (patch)
treee57b579948968968447508ad7747ff644b9b89c7 /fs/fuse/fuse_i.h
parent79d96efffda7597b41968d5d8813b39fc2965f1b (diff)
downloadlinux-4388c5aac4bae5c83a2c66882043942002ba09a2.tar.bz2
fuse: export fuse_dequeue_forget() function
File systems like virtio-fs need to do not have to play directly with forget list data structures. There is a helper function use that instead. Rename dequeue_forget() to fuse_dequeue_forget() and export it so that stacked filesystems can use it. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index b868b71d47d9..5f910c99e8dd 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -729,6 +729,10 @@ void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget,
struct fuse_forget_link *fuse_alloc_forget(void);
+struct fuse_forget_link *fuse_dequeue_forget(struct fuse_iqueue *fiq,
+ unsigned int max,
+ unsigned int *countp);
+
/*
* Initialize READ or READDIR request
*/