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>
Showing
- Documentation/filesystems/porting.rst 9 additions, 0 deletionsDocumentation/filesystems/porting.rst
- arch/powerpc/platforms/cell/spufs/inode.c 3 additions, 2 deletionsarch/powerpc/platforms/cell/spufs/inode.c
- fs/afs/dynroot.c 3 additions, 2 deletionsfs/afs/dynroot.c
- fs/autofs/expire.c 2 additions, 5 deletionsfs/autofs/expire.c
- fs/ceph/dir.c 1 addition, 1 deletionfs/ceph/dir.c
- fs/ceph/mds_client.c 1 addition, 1 deletionfs/ceph/mds_client.c
- fs/coda/cache.c 1 addition, 1 deletionfs/coda/cache.c
- fs/dcache.c 37 additions, 39 deletionsfs/dcache.c
- fs/libfs.c 21 additions, 24 deletionsfs/libfs.c
- fs/notify/fsnotify.c 1 addition, 1 deletionfs/notify/fsnotify.c
- fs/tracefs/inode.c 14 additions, 20 deletionsfs/tracefs/inode.c
- include/linux/dcache.h 15 additions, 5 deletionsinclude/linux/dcache.h
Please register or sign in to comment