Skip to content

Commit e031251

Browse files
author
Al Viro
committed
constify is_local_mountpoint()
Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 9cb79ed commit e031251

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fs/mount.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ struct proc_mounts {
147147

148148
extern const struct seq_operations mounts_op;
149149

150-
extern bool __is_local_mountpoint(struct dentry *dentry);
151-
static inline bool is_local_mountpoint(struct dentry *dentry)
150+
extern bool __is_local_mountpoint(const struct dentry *dentry);
151+
static inline bool is_local_mountpoint(const struct dentry *dentry)
152152
{
153153
if (!d_mountpoint(dentry))
154154
return false;

fs/namespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ struct vfsmount *lookup_mnt(const struct path *path)
894894
* namespace not just a mount that happens to have some specified
895895
* parent mount.
896896
*/
897-
bool __is_local_mountpoint(struct dentry *dentry)
897+
bool __is_local_mountpoint(const struct dentry *dentry)
898898
{
899899
struct mnt_namespace *ns = current->nsproxy->mnt_ns;
900900
struct mount *mnt, *n;

0 commit comments

Comments
 (0)