]> 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)
commitb9b572bc4580176d534a96066aab42a7c8edc7e2
treefb79454083149c59bd25ca09eab96b7028d3299f
parent3693cc453a5b36d7d4948355d91c62d59ba396ba
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