]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: add d_walk()
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 5 Sep 2013 09:44:35 +0000 (11:44 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 5 Sep 2013 20:22:44 +0000 (16:22 -0400)
commite1d5ee3ada6738ac0b360d92402802e67b22c584
tree174f3dee50f4d89f893f3bca8937bd1837e265df
parentff980d44d36659b7fa38ee5cc1df78f2418cc979
vfs: add d_walk()

This one replaces three instances open coded tree walking (have_submounts,
select_parent, d_genocide) with a common helper.

In addition to slightly reducing the kernel size, this simplifies the
callers and makes them less bug prone.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c