From e031251cb249f824ad67cb0b2fc18b68d5792b8d Mon Sep 17 00:00:00 2001 From: Al Viro Date: Mon, 9 Jun 2025 22:03:17 -0400 Subject: [PATCH] constify is_local_mountpoint() Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- fs/mount.h | 4 ++-- fs/namespace.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/mount.h b/fs/mount.h index c4d417cd7953c..f10776003643a 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 aa93e1a48b5da..c4feb83159785 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; -- 2.47.2