]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/dcache.c
more graceful recovery in umount_collect()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 3 May 2014 00:36:10 +0000 (20:36 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 3 May 2014 20:46:13 +0000 (16:46 -0400)
commit9c8c10e262e0f62cb2530f1b076de979123183dd
tree36bc489a0f5a8e5baa1568f12e0aa761f8abb308
parentfe91522a7ba82ca1a51b07e19954b3825e4aaa22
more graceful recovery in umount_collect()

Start with shrink_dcache_parent(), then scan what remains.

First of all, BUG() is very much an overkill here; we are holding
->s_umount, and hitting BUG() means that a lot of interesting stuff
will be hanging after that point (sync(2), for example).  Moreover,
in cases when there had been more than one leak, we'll be better
off reporting all of them.  And more than just the last component
of pathname - %pd is there for just such uses...

That was the last user of dentry_lru_del(), so kill it off...

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