SB_RDONLY
sb->s_flags |= SB_RDONLY;
if (*flags & SB_RDONLY)
*flags |= SB_RDONLY;
*flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if ((bool)(fc->sb_flags & SB_RDONLY) == sb_rdonly(sb))
if (fc->sb_flags & SB_RDONLY)
fc->sb_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if (!(fc->sb_flags & SB_RDONLY))
return (!(fs_info->sb->s_flags & SB_RDONLY) &&
(flags & SB_RDONLY))) {
if (flags & SB_RDONLY)
ret = btrfs_check_features(fs_info, !(fc->sb_flags & SB_RDONLY));
(!sb_rdonly(sb) || (fc->sb_flags & SB_RDONLY))) {
if (!sb_rdonly(sb) && (fc->sb_flags & SB_RDONLY))
else if (sb_rdonly(sb) && !(fc->sb_flags & SB_RDONLY))
if (!(fc->sb_flags & SB_RDONLY) && fs_devices->rw_devices == 0) {
if (!(fc->sb_flags & SB_RDONLY) && (fc->root->d_sb->s_flags & SB_RDONLY))
if (!(flags & SB_RDONLY) &&
sb->s_flags |= SB_RDONLY;
sb->s_flags &= ~SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
s->s_flags |= SB_RDONLY;
sfi->sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sfi->sb->s_flags &= ~SB_RDONLY;
if (!efivar_supports_writes() && !(fc->sb_flags & SB_RDONLY)) {
s->s_flags |= SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY | SB_NOATIME;
fc->sb_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if ((bool)(flags & SB_RDONLY) == sb_rdonly(sb))
if (flags & SB_RDONLY) {
sb->s_flags &= ~SB_RDONLY;
res = SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if (es->s_last_orphan && !(s_flags & SB_RDONLY)) {
if (s_flags & SB_RDONLY) {
sb->s_flags &= ~SB_RDONLY;
if (ext4_has_feature_quota(sb) && (s_flags & SB_RDONLY)) {
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if ((bool)(fc->sb_flags & SB_RDONLY) != sb_rdonly(sb)) {
if (fc->sb_flags & SB_RDONLY) {
sb->s_flags |= SB_RDONLY;
sb->s_flags &= ~SB_RDONLY;
if (sbi->s_journal == NULL && !(old_sb_flags & SB_RDONLY)) {
if (sb_rdonly(sb) && !(old_sb_flags & SB_RDONLY) &&
if (s_flags & SB_RDONLY) {
if (!(flags & SB_RDONLY) && is_sbi_flag_set(sbi, SBI_NEED_SB_WRITE)) {
if (f2fs_readonly(sb) && (flags & SB_RDONLY))
if (f2fs_dev_is_readonly(sbi) && !(flags & SB_RDONLY)) {
if (!f2fs_readonly(sb) && (flags & SB_RDONLY)) {
} else if (f2fs_readonly(sb) && !(flags & SB_RDONLY)) {
sb->s_flags &= ~SB_RDONLY;
if ((flags & SB_RDONLY) && test_opt(sbi, DISABLE_CHECKPOINT)) {
if ((flags & SB_RDONLY) ||
if (flags & SB_RDONLY) {
if ((flags & SB_RDONLY) || !test_opt(sbi, FLUSH_MERGE)) {
f2fs_issue_discard_timeout(sbi, flags & SB_RDONLY);
if ((flags & SB_RDONLY) || test_opt(sbi, DISABLE_CHECKPOINT) ||
sbi->sb->s_flags &= ~SB_RDONLY;
sbi->sb->s_flags |= SB_RDONLY;
sb->s_flags &= ~SB_RDONLY;
sb->s_flags |= SB_RDONLY;
new_rdonly = fc->sb_flags & SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sbp->s_flags |= SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
{ "ro", SB_RDONLY },
{ "rw", SB_RDONLY },
sb->s_flags |= SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
if ((sb->s_flags ^ fc->sb_flags) & SB_RDONLY) {
if (fc->sb_flags & SB_RDONLY) {
if ((fc->sb_flags ^ s->s_flags) & SB_RDONLY) {
sdp->sd_vfs->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if ((bool)(fc->sb_flags & SB_RDONLY) == sb_rdonly(sb))
if (!(fc->sb_flags & SB_RDONLY)) {
sb->s_flags |= SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if ((bool)(fc->sb_flags & SB_RDONLY) == sb_rdonly(sb))
if (!(fc->sb_flags & SB_RDONLY)) {
sb->s_flags |= SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if (((31 + de->namelen + de->down*4 + 3) & ~3) < le16_to_cpu(de->length) && s->s_flags & SB_RDONLY) goto ok;
if (!(fc->sb_flags & SB_RDONLY)) mark_dirty(s, 1);
s->s_flags |= SB_RDONLY;
if (!(fc->sb_flags & SB_RDONLY))
if (!(fc->sb_flags & SB_RDONLY))
#define jffs2_is_readonly(c) (OFNI_BS_2SFFJ(c)->s_flags & SB_RDONLY)
int readonly = fc->sb_flags & SB_RDONLY;
sb->s_flags &= ~SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if ((bool)(fc->sb_flags & SB_RDONLY) == sb_rdonly(sb))
if (fc->sb_flags & SB_RDONLY) {
fc = fs_context_for_reconfigure(sb->s_root, SB_RDONLY,
SB_RDONLY);
sb_flags = flags & (SB_RDONLY |
s->sm.sb_flags = sb->s_flags & (SB_RDONLY|SB_SYNCHRONOUS|SB_DIRSYNC|SB_LAZYTIME);
#define NFS_SB_MASK (SB_RDONLY|SB_NOSUID|SB_NODEV|SB_NOEXEC|SB_SYNCHRONOUS)
if ((bool)(fc->sb_flags & SB_RDONLY) == sb_rdonly(sb))
if (fc->sb_flags & SB_RDONLY) {
sb->s_flags |= SB_RDONLY;
sb->s_flags &= ~SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if (ctx->cno && !(fc->sb_flags & SB_RDONLY)) {
if ((fc->sb_flags ^ s->s_flags) & SB_RDONLY) {
sb->s_flags |= SB_RDONLY;
if (s_flags & SB_RDONLY) {
if (s_flags & SB_RDONLY) {
sb->s_flags &= ~SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if (sb_rdonly(sb) && !(fc->sb_flags & SB_RDONLY)) {
} else if (!sb_rdonly(sb) && (fc->sb_flags & SB_RDONLY)) {
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
ro_rw = sb_rdonly(sb) && !(fc->sb_flags & SB_RDONLY);
sb->s_flags |= SB_RDONLY;
if ((bool)(fc->sb_flags & SB_RDONLY) != sb_rdonly(sb)) {
if (fc->sb_flags & SB_RDONLY) {
if (fc->sb_flags & SB_RDONLY) {
sb->s_flags |= SB_RDONLY;
sb->s_flags &= ~SB_RDONLY;
if (!ret && !(fc->sb_flags & SB_RDONLY)) {
sb->s_flags |= SB_RDONLY;
if (!(fc->sb_flags & SB_RDONLY) && ovl_force_readonly(ofs))
if (fc->sb_flags & SB_RDONLY && !sb_rdonly(sb)) {
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
s->s_flags |= SB_RDONLY; /* Yup, read-only yet */
fc->sb_flags |= SB_RDONLY;
s->s_flags |= SB_RDONLY; /* Yup, read-only yet */
fc->sb_flags |= SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY | SB_NOATIME;
sb->s_flags |= SB_RDONLY;
#define CIFS_MS_MASK (SB_RDONLY | SB_MANDLOCK | SB_NOEXEC | SB_NOSUID | \
sb->s_flags |= SB_RDONLY;
fc->sb_flags |= SB_RDONLY;
if (s_flags & SB_RDONLY)
SB_RDONLY | SB_FORCE, SB_RDONLY);
if ((fc->sb_flags ^ s->s_flags) & SB_RDONLY) {
if (fc->sb_flags_mask & SB_RDONLY) {
if (!(fc->sb_flags & SB_RDONLY) && sb->s_bdev &&
remount_rw = !(fc->sb_flags & SB_RDONLY) && sb_rdonly(sb);
remount_ro = (fc->sb_flags & SB_RDONLY) && !sb_rdonly(sb);
c->vfs_sb->s_flags |= SB_RDONLY;
if (c->ro_mount && !(fc->sb_flags & SB_RDONLY)) {
} else if (!c->ro_mount && (fc->sb_flags & SB_RDONLY)) {
if (!!(fc->sb_flags & SB_RDONLY) != c1->ro_mount) {
int readonly = fc->sb_flags & SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if ((bool)(fc->sb_flags & SB_RDONLY) == sb_rdonly(sb)) {
if (fc->sb_flags & SB_RDONLY) {
sb->s_flags |= SB_RDONLY;
sb->s_flags &= ~SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
if (fc->sb_flags & SB_RDONLY)
if (xfs_is_readonly(mp) && !(flags & SB_RDONLY)) {
if (!xfs_is_readonly(mp) && (flags & SB_RDONLY)) {
!(sb->s_flags & SB_RDONLY)) {
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
sb->s_flags |= SB_RDONLY;
(((flags) & SB_RDONLY) ? 0 : BLK_OPEN_WRITE))
#define IS_NOATIME(inode) __IS_FLG(inode, SB_RDONLY|SB_NOATIME)
return sb->s_flags & SB_RDONLY;
((le32_to_cpu(bfs_sb->s_from) != -1) && (le32_to_cpu(bfs_sb->s_to) != -1) && !(sb->s_flags & SB_RDONLY))
if (!(flags & SB_RDONLY)) {
flags |= SB_RDONLY;