diff options
author | Csaba Henk <csaba@gluster.com> | 2009-07-01 20:28:41 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2009-07-07 11:28:52 -0400 |
commit | 7a6d3c8b3049d07123628f2bf57127bba2cc878f (patch) | |
tree | bfa09bd7e87753eb777699e0566e396ae639532c /include | |
parent | 8e4a718ff38d8539938ec3421935904c27e00c39 (diff) |
fuse: make the number of max background requests and congestion threshold tunable
The practical values for these limits depend on the design of the
filesystem server so let userspace set them at initialization time.
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fuse.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index cf593bf9fd32..b3700f0ac268 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
@@ -30,6 +30,10 @@ | |||
30 | * - add umask flag to input argument of open, mknod and mkdir | 30 | * - add umask flag to input argument of open, mknod and mkdir |
31 | * - add notification messages for invalidation of inodes and | 31 | * - add notification messages for invalidation of inodes and |
32 | * directory entries | 32 | * directory entries |
33 | * | ||
34 | * 7.13 | ||
35 | * - make max number of background requests and congestion threshold | ||
36 | * tunables | ||
33 | */ | 37 | */ |
34 | 38 | ||
35 | #ifndef _LINUX_FUSE_H | 39 | #ifndef _LINUX_FUSE_H |
@@ -41,7 +45,7 @@ | |||
41 | #define FUSE_KERNEL_VERSION 7 | 45 | #define FUSE_KERNEL_VERSION 7 |
42 | 46 | ||
43 | /** Minor version number of this interface */ | 47 | /** Minor version number of this interface */ |
44 | #define FUSE_KERNEL_MINOR_VERSION 12 | 48 | #define FUSE_KERNEL_MINOR_VERSION 13 |
45 | 49 | ||
46 | /** The node ID of the root inode */ | 50 | /** The node ID of the root inode */ |
47 | #define FUSE_ROOT_ID 1 | 51 | #define FUSE_ROOT_ID 1 |
@@ -427,7 +431,8 @@ struct fuse_init_out { | |||
427 | __u32 minor; | 431 | __u32 minor; |
428 | __u32 max_readahead; | 432 | __u32 max_readahead; |
429 | __u32 flags; | 433 | __u32 flags; |
430 | __u32 unused; | 434 | __u16 max_background; |
435 | __u16 congestion_threshold; | ||
431 | __u32 max_write; | 436 | __u32 max_write; |
432 | }; | 437 | }; |
433 | 438 | ||