aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2025-08-24 16:55:27 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2025-09-15 21:26:44 -0400
commit86af25b01df1181ac4a81d6cbbc6d48a9cc7106f (patch)
tree19892b0de5b8cf95d6ad448a35673bc13a904d1a /fs/namespace.c
parentf91c433a5c1240b5ad48d2cb8b69d38453b63e00 (diff)
downloadrandom-86af25b01df1181ac4a81d6cbbc6d48a9cc7106f.tar.gz
constify can_move_mount_beneath() arguments
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 0b351af533001c..a97f8dc05864be 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;