constify mnt_has_parent()
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user