]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
fs: add two trivial lookup helpers
authorChristian Brauner <brauner@kernel.org>
Mon, 4 Apr 2022 10:51:40 +0000 (12:51 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:25:32 +0000 (09:25 +0200)
commita8f73696709abed9f77b69cd12de20e5248f7e24
treec658d20cb72336e8438c3cbad5da113d7199bab0
parent06840bf1055af2e87dcae123f4f1b773e2e8657e
fs: add two trivial lookup helpers

BugLink: https://bugs.launchpad.net/bugs/1981864
commit 00675017e0aeba5305665c52ded4ddce6a4c0231 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/namei.c
include/linux/namei.h