]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67984d38357a7038f623806bbcc8803466b65cc2
treee1583099c0d913ceb2158ccdf7394f3f18e01721
parent6fa340552714f88341581750e16ed71b11efd484
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