]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: add lookup_hash() helper
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 10 May 2016 23:16:37 +0000 (01:16 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 May 2016 03:56:28 +0000 (23:56 -0400)
commitdd84b2a99620c856575ce031a42e5f683340fe7b
tree29f9b50b15ebbea097686abd2b0a71dedfcc128d
parent13f9bbbbf8d56d0e89133867557db93f24a8353f
vfs: add lookup_hash() helper

Overlayfs needs lookup without inode_permission() and already has the name
hash (in form of dentry->d_name on overlayfs dentry).  It also doesn't
support filesystems with d_op->d_hash() so basically it only needs
the actual hashed lookup from lookup_one_len_unlocked()

So add a new helper that does unlocked lookup of a hashed name.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/namei.c
include/linux/namei.h