afs: Use d_instantiate() rather than d_add() and don't d_drop()
authorDavid Howells <dhowells@redhat.com>
Tue, 13 Nov 2018 23:20:35 +0000 (23:20 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 30 Nov 2018 02:08:14 +0000 (21:08 -0500)
commit73116df7bb90435ccb2817f44113295240d15034
treee1583099c0d913ceb2158ccdf7394f3f18e01721
parent4584ae96ae307613625e80cb9c7d9a981bed47a7
afs: Use d_instantiate() rather than d_add() and don't d_drop()

Use d_instantiate() rather than d_add() and don't d_drop() in
afs_vnode_new_inode().  The dentry shouldn't be removed as it's not
changing its name.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/afs/dir.c