]> 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)
commit6a2f321d4a8e1e49d819ca995748e47159589ca9
tree360acfdd63f30ca9a52d1d46d39d7cbea044c98a
parentdd83bf6ec3ff66a6716557b3ab187793fb7f3b8e
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