From 8be87700c9801559893d75ed6c8ae6685db60f1d Mon Sep 17 00:00:00 2001 From: Al Viro Date: Wed, 20 Aug 2025 14:48:46 -0400 Subject: [PATCH] constify check_mnt() Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- fs/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namespace.c b/fs/namespace.c index 47c7a0517663c..10949806ad7a3 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1010,7 +1010,7 @@ static void unpin_mountpoint(struct pinned_mountpoint *m) } } -static inline int check_mnt(struct mount *mnt) +static inline int check_mnt(const struct mount *mnt) { return mnt->mnt_ns == current->nsproxy->mnt_ns; } -- 2.47.3