Skip to content

Commit 4f4b18a

Browse files
author
Al Viro
committed
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>
1 parent 8ec7ee2 commit 4f4b18a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/namespace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2984,7 +2984,7 @@ static int do_change_type(const struct path *path, int ms_flags)
29842984
*
29852985
* Returns true if the mount tree can be copied, false otherwise.
29862986
*/
2987-
static inline bool may_copy_tree(struct path *path)
2987+
static inline bool may_copy_tree(const struct path *path)
29882988
{
29892989
struct mount *mnt = real_mount(path->mnt);
29902990
const struct dentry_operations *d_op;
@@ -3006,7 +3006,7 @@ static inline bool may_copy_tree(struct path *path)
30063006
}
30073007

30083008

3009-
static struct mount *__do_loopback(struct path *old_path, int recurse)
3009+
static struct mount *__do_loopback(const struct path *old_path, int recurse)
30103010
{
30113011
struct mount *old = real_mount(old_path->mnt);
30123012

0 commit comments

Comments
 (0)