]> git.baikalelectronics.ru Git - kernel.git/commit
dentry leak in simple_fill_super() failure exit
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 2 Apr 2012 23:22:25 +0000 (19:22 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Apr 2012 05:39:22 +0000 (01:39 -0400)
commit40f5613c1c392d94a94ec7d3d243baab8831706e
treefb79454083149c59bd25ca09eab96b7028d3299f
parent54dd222cbb811379e380cf4d8535a2eb005d6dad
dentry leak in simple_fill_super() failure exit

d_genocide() does _not_ evict dentries; it just removes extra ref
pinning each of those.  Normally it's followed by shrinking the
tree (it's done just before generic_shutdown_super() by kill_litter_super()),
but in case of simple_fill_super() nothing of that kind will follow.
Just do shrink_dcache_parent() manually.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/libfs.c