]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5109c7867fe4952b07b107f3ec2d3bfd9c4bd785
tree36bc489a0f5a8e5baa1568f12e0aa761f8abb308
parent0e7599b1d1050c81c4659d843471dd29c070240a
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