Skip to content

Commit 86af25b

Browse files
author
Al Viro
committed
constify can_move_mount_beneath() arguments
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent f91c433 commit 86af25b

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
@@ -3466,8 +3466,8 @@ static bool mount_is_ancestor(const struct mount *p1, const struct mount *p2)
34663466
* Context: This function expects namespace_lock() to be held.
34673467
* Return: On success 0, and on error a negative error code is returned.
34683468
*/
3469-
static int can_move_mount_beneath(struct mount *mnt_from,
3470-
struct mount *mnt_to,
3469+
static int can_move_mount_beneath(const struct mount *mnt_from,
3470+
const struct mount *mnt_to,
34713471
const struct mountpoint *mp)
34723472
{
34733473
struct mount *parent_mnt_to = mnt_to->mnt_parent;

0 commit comments

Comments
 (0)