]> 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)
commitc896636257d233e1fb54356f5974fb1a5286a26e
tree29f9b50b15ebbea097686abd2b0a71dedfcc128d
parentb42c64a4f5e4df2a84aa2b97715ae65d7a7b4db0
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