From 86af25b01df1181ac4a81d6cbbc6d48a9cc7106f Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 24 Aug 2025 16:55:27 -0400 Subject: [PATCH] constify can_move_mount_beneath() arguments Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- fs/namespace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 0b351af533001..a97f8dc05864b 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -3466,8 +3466,8 @@ static bool mount_is_ancestor(const struct mount *p1, const struct mount *p2) * Context: This function expects namespace_lock() to be held. * Return: On success 0, and on error a negative error code is returned. */ -static int can_move_mount_beneath(struct mount *mnt_from, - struct mount *mnt_to, +static int can_move_mount_beneath(const struct mount *mnt_from, + const struct mount *mnt_to, const struct mountpoint *mp) { struct mount *parent_mnt_to = mnt_to->mnt_parent; -- 2.47.3