mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
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:
parent
cf53a2d423
commit
0e84653ea5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue