From: Al Viro Date: Tue, 29 Apr 2025 01:48:45 +0000 (-0400) Subject: constify mnt_has_parent() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e84653ea596bf9f5bfea58b0a34e0d9f72236c4;p=thirdparty%2Fkernel%2Fstable.git constify mnt_has_parent() Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- 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; }