replace d_add_unique() with saner primitive
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 8 Mar 2016 17:44:17 +0000 (12:44 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2016 04:17:20 +0000 (00:17 -0400)
commit668d0cd56ef7bc71be6dd8c081007221e09d9a86
treee4e61bdd16fde1ad932861a23978601c2530f32a
parente12a4e8a04a9ef84ba645379c56abad1a0ca9dbd
replace d_add_unique() with saner primitive

new primitive: d_exact_alias(dentry, inode).  If there is an unhashed
dentry with the same name/parent and given inode, rehash, grab and
return it.  Otherwise, return NULL.  The only caller of d_add_unique()
switched to d_exact_alias() + d_splice_alias().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c
fs/nfs/nfs4proc.c
include/linux/dcache.h