]> 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)
commit1a9e70e41c21153358235cac51bc0c4948ba2fa2
tree36bc489a0f5a8e5baa1568f12e0aa761f8abb308
parent9171ae82b498e8c5624c0c67c53c7ef1df6b7733
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