[readdir] introduce iterate_dir() and dir_context
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 May 2013 17:52:59 +0000 (13:52 -0400)
committerMohamad Ayyash <mkayyash@google.com>
Wed, 4 Mar 2015 19:15:13 +0000 (11:15 -0800)
commitc301a0e047e401d41b26db1009d08e088ae2365a
tree0e10eafaf67fe6739648b2f2b5af4083697658f1
parent78bae7615d4d1c8114a2259262648afceb9ef221
[readdir] introduce iterate_dir() and dir_context

iterate_dir(): new helper, replacing vfs_readdir().

struct dir_context: contains the readdir callback (and will get more stuff
in it), embedded into whatever data that callback wants to deal with;
eventually, we'll be passing it to ->readdir() replacement instead of
(data,filldir) pair.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/filesystems/porting
arch/alpha/kernel/osf_sys.c
arch/parisc/hpux/fs.c
fs/compat.c
fs/ecryptfs/file.c
fs/exportfs/expfs.c
fs/nfsd/nfs4recover.c
fs/nfsd/vfs.c
fs/readdir.c
include/linux/fs.h