]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: restructure d_genocide()
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 5 Sep 2013 09:44:34 +0000 (11:44 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 5 Sep 2013 20:22:43 +0000 (16:22 -0400)
commitff980d44d36659b7fa38ee5cc1df78f2418cc979
tree360acfdd63f30ca9a52d1d46d39d7cbea044c98a
parent106b3ee5776d07ae7c6fc007c7201916791de9dc
vfs: restructure d_genocide()

It shouldn't matter when we decrement the refcount during the walk as long
as we do it exactly once.

Restructure d_genocide() to do the killing on entering the dentry instead
of when leaving it.  This helps creating a common helper for tree walking.

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