aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2011-05-19 15:26:37 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2011-05-19 15:26:37 +0200
commitd915a6b4a84ae6e82f3756df9ca695395e5aacfe (patch)
tree9755b85c71fc7392b6253ba4715fc6fe3a08390b /include
parent9c526a7a54b90608463380deffe94e1c9d17db15 (diff)
downloadandroid_external_fuse-d915a6b4a84ae6e82f3756df9ca695395e5aacfe.tar.gz
android_external_fuse-d915a6b4a84ae6e82f3756df9ca695395e5aacfe.tar.bz2
android_external_fuse-d915a6b4a84ae6e82f3756df9ca695395e5aacfe.zip
Allow batching of forget requests
This allows forget requests to be processed faster and doesn't require a modification to fuse filesystems. Reported by Terje Malmedal
Diffstat (limited to 'include')
-rw-r--r--include/fuse_kernel.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h
index c7c99a5..7e7ca17 100644
--- a/include/fuse_kernel.h
+++ b/include/fuse_kernel.h
@@ -67,6 +67,9 @@
* 7.15
* - add store notify
* - add retrieve notify
+ *
+ * 7.16
+ * - add BATCH_FORGET request
*/
#ifndef _LINUX_FUSE_H
@@ -103,7 +106,7 @@
#define FUSE_KERNEL_VERSION 7
/** Minor version number of this interface */
-#define FUSE_KERNEL_MINOR_VERSION 15
+#define FUSE_KERNEL_MINOR_VERSION 16
/** The node ID of the root inode */
#define FUSE_ROOT_ID 1
@@ -287,6 +290,7 @@ enum fuse_opcode {
FUSE_IOCTL = 39,
FUSE_POLL = 40,
FUSE_NOTIFY_REPLY = 41,
+ FUSE_BATCH_FORGET = 42,
/* CUSE specific operations */
CUSE_INIT = 4096,
@@ -321,6 +325,16 @@ struct fuse_forget_in {
__u64 nlookup;
};
+struct fuse_forget_one {
+ __u64 nodeid;
+ __u64 nlookup;
+};
+
+struct fuse_batch_forget_in {
+ __u32 count;
+ __u32 dummy;
+};
+
struct fuse_getattr_in {
__u32 getattr_flags;
__u32 dummy;