make retain_dentry() neutral with respect to refcounting
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Oct 2023 23:09:11 +0000 (19:09 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 25 Nov 2023 07:33:42 +0000 (02:33 -0500)
commite9d130d05077e71b1224ad96e419f5f5512b8574
tree9aa94f6b6d496b7b5c0829ffd72a3f9e2b4e9225
parent6511f6be777f3b06e904c7407fd9f2a39dae8b67
make retain_dentry() neutral with respect to refcounting

retain_dentry() used to decrement refcount if and only if it returned
true.  Lift those decrements into the callers.

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