get rid of trylock loop around dentry_kill()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 24 Feb 2018 02:25:42 +0000 (21:25 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Mar 2018 19:07:44 +0000 (15:07 -0400)
commitf657a666fd1b1b9fe59963943c74c245ae66f4cc
treecf01b5b08611520699f8425b24029f7076a6357a
parent62d9956cefe6ecc4b43a7fae37af78ba7adaceaa
get rid of trylock loop around dentry_kill()

In case when trylock in there fails, deal with it directly in
dentry_kill().  Note that in cases when we drop and retake
->d_lock, we need to recheck whether to retain the dentry.
Another thing is that dropping/retaking ->d_lock might have
ended up with negative dentry turning into positive; that,
of course, can happen only once...

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