dentry: switch the lists of children to hlist
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 7 Nov 2023 07:00:39 +0000 (02:00 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 25 Nov 2023 07:32:13 +0000 (02:32 -0500)
commitda549bdd15c295c24b2ee7ffe7ad0f3877fa8a87
tree15dbab67479c82f6138f801dce00f04c357438a6
parentb31559f8e471f402cd71117f35b9cde52d192138
dentry: switch the lists of children to hlist

Saves a pointer per struct dentry and actually makes the things less
clumsy.  Cleaned the d_walk() and dcache_readdir() a bit by use
of hlist_for_... iterators.

A couple of new helpers - d_first_child() and d_next_sibling(),
to make the expressions less awful.

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 files changed:
Documentation/filesystems/porting.rst
arch/powerpc/platforms/cell/spufs/inode.c
fs/afs/dynroot.c
fs/autofs/expire.c
fs/ceph/dir.c
fs/ceph/mds_client.c
fs/coda/cache.c
fs/dcache.c
fs/libfs.c
fs/notify/fsnotify.c
fs/tracefs/inode.c
include/linux/dcache.h