]> git.baikalelectronics.ru Git - kernel.git/commit
dcache.c: new helper: __d_add()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 10 Mar 2016 00:52:39 +0000 (19:52 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2016 04:17:38 +0000 (00:17 -0400)
commit303fe1818c8ca145cfb165c01c9c6b6388acc1b1
treeb71d827f20323980723d707009f371908b9c4179
parent9df20aed0480055456f1a0f1880fea7c169ab4d2
dcache.c: new helper: __d_add()

d_add() with inode->i_lock already held; common to d_add() and
d_splice_alias().  All ->lookup() instances that end up hashing
the dentry they are given will hash it here.

This almost completes the preparations to parallel lookups
proper - the only remaining bit is taking security_d_instantiate()
past d_rehash() and doing rehashing without dropping ->d_lock.

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