]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
constify is_local_mountpoint()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 10 Jun 2025 02:03:17 +0000 (22:03 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jun 2025 22:13:41 +0000 (18:13 -0400)
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/mount.h
fs/namespace.c

index c4d417cd7953c8b761d645c8e12f2d4c056b2045..f10776003643aa2bd5f9c9512d12f62fe6fedb7c 100644 (file)
@@ -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;
index aa93e1a48b5da6e561c11161ac28cd60f0b44ea4..c4feb83159785f3014c30dfe6d2abf8c3d9a6583 100644 (file)
@@ -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;