From: Al Viro Date: Tue, 10 Jun 2025 02:03:17 +0000 (-0400) Subject: constify is_local_mountpoint() X-Git-Tag: block-6.17-20250808~63^2~40 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e031251cb249f824ad67cb0b2fc18b68d5792b8d;p=linux-block.git constify is_local_mountpoint() Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/mount.h b/fs/mount.h index c4d417cd7953..f10776003643 100644 --- a/fs/mount.h +++ b/fs/mount.h @@ -147,8 +147,8 @@ struct proc_mounts { extern const struct seq_operations mounts_op; -extern bool __is_local_mountpoint(struct dentry *dentry); -static inline bool is_local_mountpoint(struct dentry *dentry) +extern bool __is_local_mountpoint(const struct dentry *dentry); +static inline bool is_local_mountpoint(const struct dentry *dentry) { if (!d_mountpoint(dentry)) return false; diff --git a/fs/namespace.c b/fs/namespace.c index aa93e1a48b5d..c4feb8315978 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -894,7 +894,7 @@ struct vfsmount *lookup_mnt(const struct path *path) * namespace not just a mount that happens to have some specified * parent mount. */ -bool __is_local_mountpoint(struct dentry *dentry) +bool __is_local_mountpoint(const struct dentry *dentry) { struct mnt_namespace *ns = current->nsproxy->mnt_ns; struct mount *mnt, *n;