Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

constify {__,}mnt_is_readonly()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro a7976524 1e414adf

+3 -3
+2 -2
fs/namespace.c
··· 428 428 * mnt_want/drop_write() will _keep_ the filesystem 429 429 * r/w. 430 430 */ 431 - bool __mnt_is_readonly(struct vfsmount *mnt) 431 + bool __mnt_is_readonly(const struct vfsmount *mnt) 432 432 { 433 433 return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb); 434 434 } ··· 468 468 #endif 469 469 } 470 470 471 - static int mnt_is_readonly(struct vfsmount *mnt) 471 + static int mnt_is_readonly(const struct vfsmount *mnt) 472 472 { 473 473 if (READ_ONCE(mnt->mnt_sb->s_readonly_remount)) 474 474 return 1;
+1 -1
include/linux/mount.h
··· 76 76 extern struct vfsmount *mntget(struct vfsmount *mnt); 77 77 extern void mnt_make_shortterm(struct vfsmount *mnt); 78 78 extern 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); 80 80 extern bool mnt_may_suid(struct vfsmount *mnt); 81 81 82 82 extern struct vfsmount *clone_private_mount(const struct path *path);