]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
hypfs: don't bother with d_delete()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 27 Jul 2019 20:10:56 +0000 (16:10 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 3 Sep 2019 13:30:54 +0000 (09:30 -0400)
commit29dfeb0b6ae6fcfbc78040bab166215020974f65
treef33fb4919bfc59117974a7139d352a3d285b015a
parent84a2bd39405ffd5fa6d6d77e408c5b9210da98de
hypfs: don't bother with d_delete()

If that's not the last reference, d_delete() will do d_drop().
If it is, dput() immediately after it will unhash the sucker
anyway, since ->d_delete() the method is always_delete_dentry().

IOW, there's no point trying to turn it into a negative hashed
dentry - it won't stick around anyway.  Just d_drop() it and be
done with that.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/s390/hypfs/inode.c