Skip to content

Commit f7be8a3

Browse files
committed
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: Jan Kara <jack@suse.cz> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 774adcb commit f7be8a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/fhandle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ SYSCALL_DEFINE5(name_to_handle_at, int, dfd, const char __user *, name,
168168
return err;
169169
}
170170

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

341-
retval = get_path_from_fd(mountdirfd, &ctx.root);
341+
retval = get_path_anchor(mountdirfd, &ctx.root);
342342
if (retval)
343343
return retval;
344344

0 commit comments

Comments
 (0)