Unverified Commit f7be8a33 authored by Christian Brauner's avatar Christian Brauner
Browse files

fhandle: rename to get_path_anchor()

Rename as we're going to expand the function in the next step. The path
just serves as the anchor tying the decoding to the filesystem.

Link: https://lore.kernel.org/20250624-work-pidfs-fhandle-v2-3-d02a04858fe3@kernel.org


Reviewed-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarAmir Goldstein <amir73il@gmail.com>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 774adcb5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -168,7 +168,7 @@ SYSCALL_DEFINE5(name_to_handle_at, int, dfd, const char __user *, name,
	return err;
}

static int get_path_from_fd(int fd, struct path *root)
static int get_path_anchor(int fd, struct path *root)
{
	if (fd == AT_FDCWD) {
		struct fs_struct *fs = current->fs;
@@ -338,7 +338,7 @@ static int handle_to_path(int mountdirfd, struct file_handle __user *ufh,
	    FILEID_USER_FLAGS(f_handle.handle_type) & ~FILEID_VALID_USER_FLAGS)
		return -EINVAL;

	retval = get_path_from_fd(mountdirfd, &ctx.root);
	retval = get_path_anchor(mountdirfd, &ctx.root);
	if (retval)
		return retval;