new helper: d_find_alias_rcu()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 5 Jan 2021 19:13:52 +0000 (14:13 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 16 Jan 2021 20:12:06 +0000 (15:12 -0500)
commitbca585d24a1719d9314d5438b0d2804a33d9bbb6
treeaa7d4a45ea39b63deb8e0ebbb82f1c9d2aa0ee0e
parentd36a1dd9f77ae1e72da48f4123ed35627848507d
new helper: d_find_alias_rcu()

similar to d_find_alias(inode), except that
* the caller must be holding rcu_read_lock()
* inode must not be freed until matching rcu_read_unlock()
* result is *NOT* pinned and can only be dereferenced until
the matching rcu_read_unlock().

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