]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf8cd58341b554abe33b8a31931ecee60d13f0056
treee4e61bdd16fde1ad932861a23978601c2530f32a
parent33890351980d7f986596b1c8c7e78889bc7428b5
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