fuse: allow control of adaptive readdirplus use
authorEric Wong <normalperson@yhbt.net>
Wed, 6 Feb 2013 22:29:01 +0000 (22:29 +0000)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 7 Feb 2013 13:25:44 +0000 (14:25 +0100)
commit634734b63ac39e137a1c623ba74f3e062b6577db
tree65e2414fb7d31005d473719f7158f29bc9ca48d0
parent7e98d53086d18c877cb44e9065219335184024de
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>
fs/fuse/dir.c
fs/fuse/fuse_i.h
fs/fuse/inode.c
include/uapi/linux/fuse.h