]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9025f8ea09bc96913346b7f6dfab561417682bcd
tree65e2414fb7d31005d473719f7158f29bc9ca48d0
parent36ee5b279985ad12ee692a4550327dc60e92e10c
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