diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-30 02:48:13 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-09-17 15:58:29 -0400 |
| commit | a79765248649de77771c24f7be08ff4c96f16f7a (patch) | |
| tree | b17e043769c1124253718502aed5586fd8cfe46d /fs/namespace.c | |
| parent | 1e414adf03ae5a9928aad9044a07adeb92ddcd2c (diff) | |
| download | random-a79765248649de77771c24f7be08ff4c96f16f7a.tar.gz | |
constify {__,}mnt_is_readonly()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
| -rw-r--r-- | fs/namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 54066c9b8da02f..4b74fabced434d 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -428,7 +428,7 @@ out_free_cache: * mnt_want/drop_write() will _keep_ the filesystem * r/w. */ -bool __mnt_is_readonly(struct vfsmount *mnt) +bool __mnt_is_readonly(const struct vfsmount *mnt) { return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb); } @@ -468,7 +468,7 @@ static unsigned int mnt_get_writers(struct mount *mnt) #endif } -static int mnt_is_readonly(struct vfsmount *mnt) +static int mnt_is_readonly(const struct vfsmount *mnt) { if (READ_ONCE(mnt->mnt_sb->s_readonly_remount)) return 1; |
