Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

Al Viro 29dfeb0b 84a2bd39

+1 -1
+1 -1
arch/s390/hypfs/inode.c
··· 76 76 else 77 77 simple_unlink(d_inode(parent), dentry); 78 78 } 79 - d_delete(dentry); 79 + d_drop(dentry); 80 80 dput(dentry); 81 81 inode_unlock(d_inode(parent)); 82 82 }