projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf53a2d
)
constify mnt_has_parent()
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 29 Apr 2025 01:48:45 +0000
(21:48 -0400)
committer
Al 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/mount.h
b/fs/mount.h
index b8beafdd6d240d4bc865df0b788df2e7c66e5427..c4d417cd7953c8b761d645c8e12f2d4c056b2045 100644
(file)
--- a/
fs/mount.h
+++ b/
fs/mount.h
@@
-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;
}