]> www.infradead.org Git - users/hch/misc.git/commitdiff
constify can_move_mount_beneath() arguments
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Aug 2025 20:55:27 +0000 (16:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:26:44 +0000 (21:26 -0400)
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c

index 0b351af533001c9d9b4c0ab04ad525c9128e717e..a97f8dc05864be6119dca4ee0d79d82cdc94fa2c 100644 (file)
@@ -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;