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)
commit01ddc4ede5f09cdaed015d49ab66eec179085a2e
tree360acfdd63f30ca9a52d1d46d39d7cbea044c98a
parenta09e9a7a4b907f2dfa9bdb2b98a1828ab4b340b2
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