From 0e84653ea596bf9f5bfea58b0a34e0d9f72236c4 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Mon, 28 Apr 2025 21:48:45 -0400 Subject: [PATCH] constify mnt_has_parent() Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- fs/mount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/mount.h b/fs/mount.h index b8beafdd6d240..c4d417cd7953c 100644 --- a/fs/mount.h +++ b/fs/mount.h @@ -102,7 +102,7 @@ static inline struct mount *real_mount(struct vfsmount *mnt) return container_of(mnt, struct mount, mnt); } -static inline int mnt_has_parent(struct mount *mnt) +static inline int mnt_has_parent(const struct mount *mnt) { return mnt != mnt->mnt_parent; } -- 2.47.2