File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ static struct mount *alloc_vfsmnt(const char *name)
428428 * mnt_want/drop_write() will _keep_ the filesystem
429429 * r/w.
430430 */
431- bool __mnt_is_readonly (struct vfsmount * mnt )
431+ bool __mnt_is_readonly (const struct vfsmount * mnt )
432432{
433433 return (mnt -> mnt_flags & MNT_READONLY ) || sb_rdonly (mnt -> mnt_sb );
434434}
@@ -468,7 +468,7 @@ static unsigned int mnt_get_writers(struct mount *mnt)
468468#endif
469469}
470470
471- static int mnt_is_readonly (struct vfsmount * mnt )
471+ static int mnt_is_readonly (const struct vfsmount * mnt )
472472{
473473 if (READ_ONCE (mnt -> mnt_sb -> s_readonly_remount ))
474474 return 1 ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ extern void mntput(struct vfsmount *mnt);
7676extern struct vfsmount * mntget (struct vfsmount * mnt );
7777extern void mnt_make_shortterm (struct vfsmount * mnt );
7878extern struct vfsmount * mnt_clone_internal (const struct path * path );
79- extern bool __mnt_is_readonly (struct vfsmount * mnt );
79+ extern bool __mnt_is_readonly (const struct vfsmount * mnt );
8080extern bool mnt_may_suid (struct vfsmount * mnt );
8181
8282extern struct vfsmount * clone_private_mount (const struct path * path );
You can’t perform that action at this time.
0 commit comments