diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-24 14:23:24 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-09-15 21:26:44 -0400 |
commit | 4f4b18af4c2e4abb7cb7047de5c6d7f5e4b48b05 (patch) | |
tree | 9dedc23c71df6776549367676a6634c4b35bc8da | |
parent | 8ec7ee2e0be710317bbfeeae8c16a3834e78ab9c (diff) |
may_copy_tree(), __do_loopback(): constify struct path argument
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 37afd82af628..e09688d63dac 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -2984,7 +2984,7 @@ static int do_change_type(const struct path *path, int ms_flags) * * Returns true if the mount tree can be copied, false otherwise. */ -static inline bool may_copy_tree(struct path *path) +static inline bool may_copy_tree(const struct path *path) { struct mount *mnt = real_mount(path->mnt); const struct dentry_operations *d_op; @@ -3006,7 +3006,7 @@ static inline bool may_copy_tree(struct path *path) } -static struct mount *__do_loopback(struct path *old_path, int recurse) +static struct mount *__do_loopback(const struct path *old_path, int recurse) { struct mount *old = real_mount(old_path->mnt); |