fs: add two trivial lookup helpers
authorChristian Brauner <brauner@kernel.org>
Mon, 4 Apr 2022 10:51:40 +0000 (12:51 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 28 Apr 2022 14:31:10 +0000 (16:31 +0200)
commit00675017e0aeba5305665c52ded4ddce6a4c0231
treef45cf7c4d720e8e5e00b63b86c86f48e36871fa1
parent3123109284176b1532874591f7c81f3837bbdc17
fs: add two trivial lookup helpers

Similar to the addition of lookup_one() add a version of
lookup_one_unlocked() and lookup_one_positive_unlocked() that take
idmapped mounts into account. This is required to port overlay to
support idmapped base layers.

Cc: <linux-fsdevel@vger.kernel.org>
Tested-by: Giuseppe Scrivano <gscrivan@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/namei.c
include/linux/namei.h