projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
774adcb
)
fhandle: rename to get_path_anchor()
author
Christian Brauner
<brauner@kernel.org>
Tue, 24 Jun 2025 08:29:06 +0000
(10:29 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Tue, 24 Jun 2025 11:00:09 +0000
(13:00 +0200)
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>
fs/fhandle.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/fhandle.c
b/fs/fhandle.c
index 73f56f8e7d5dc94e15c07509ffe01340862d03d9..d8d32208c621106d8cc5e617dc1e5e5118202664 100644
(file)
--- a/
fs/fhandle.c
+++ b/
fs/fhandle.c
@@
-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;