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)
commit640946f20390e492694f9d7470656f2262385951
treefb79454083149c59bd25ca09eab96b7028d3299f
parentc65390f4dd49755863f6d772ec538ee4757c08d7
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