aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-02-06 17:29:01 -0500
committerMiklos Szeredi <mszeredi@suse.cz>2013-02-07 08:25:44 -0500
commit634734b63ac39e137a1c623ba74f3e062b6577db (patch)
tree65e2414fb7d31005d473719f7158f29bc9ca48d0 /fs/fuse/fuse_i.h
parent7e98d53086d18c877cb44e9065219335184024de (diff)
fuse: allow control of adaptive readdirplus use
For some filesystems (e.g. GlusterFS), the cost of performing a normal readdir and readdirplus are identical. Since adaptively using readdirplus has no benefit for those systems, give users/filesystems the option to control adaptive readdirplus use. v2 of this patch incorporates Miklos's suggestion to simplify the code, as well as improving consistency of macro names and documentation. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index fc55dd33c1e2..6aeba864f070 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -514,9 +514,12 @@ struct fuse_conn {
514 /** Use enhanced/automatic page cache invalidation. */ 514 /** Use enhanced/automatic page cache invalidation. */
515 unsigned auto_inval_data:1; 515 unsigned auto_inval_data:1;
516 516
517 /** Does the filesystem support readdir-plus? */ 517 /** Does the filesystem support readdirplus? */
518 unsigned do_readdirplus:1; 518 unsigned do_readdirplus:1;
519 519
520 /** Does the filesystem want adaptive readdirplus? */
521 unsigned readdirplus_auto:1;
522
520 /** The number of requests waiting for completion */ 523 /** The number of requests waiting for completion */
521 atomic_t num_waiting; 524 atomic_t num_waiting;
522 525