Home
last modified time | relevance | path

Searched refs:MS_RDONLY (Results 1 – 105 of 105) sorted by relevance

/linux-4.1.27/fs/hfsplus/
Dsuper.c263 if (sb->s_flags & MS_RDONLY) in hfsplus_mark_mdb_dirty()
283 if (!(sb->s_flags & MS_RDONLY) && sbi->s_vhdr) { in hfsplus_put_super()
328 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) in hfsplus_remount()
330 if (!(*flags & MS_RDONLY)) { in hfsplus_remount()
339 sb->s_flags |= MS_RDONLY; in hfsplus_remount()
340 *flags |= MS_RDONLY; in hfsplus_remount()
346 sb->s_flags |= MS_RDONLY; in hfsplus_remount()
347 *flags |= MS_RDONLY; in hfsplus_remount()
351 sb->s_flags |= MS_RDONLY; in hfsplus_remount()
352 *flags |= MS_RDONLY; in hfsplus_remount()
[all …]
/linux-4.1.27/fs/ufs/
Dsuper.c296 if (!(sb->s_flags & MS_RDONLY)) { in ufs_error()
300 sb->s_flags |= MS_RDONLY; in ufs_error()
330 if (!(sb->s_flags & MS_RDONLY)) { in ufs_panic()
338 sb->s_flags |= MS_RDONLY; in ufs_panic()
754 if (!(sb->s_flags & MS_RDONLY)) in ufs_put_super()
789 if (!(sb->s_flags & MS_RDONLY)) { in ufs_fill_super()
801 UFSD("flag %u\n", (int)(sb->s_flags & MS_RDONLY)); in ufs_fill_super()
900 if (!(sb->s_flags & MS_RDONLY)) { in ufs_fill_super()
903 sb->s_flags |= MS_RDONLY; in ufs_fill_super()
916 if (!(sb->s_flags & MS_RDONLY)) { in ufs_fill_super()
[all …]
/linux-4.1.27/fs/hfs/
Dsuper.c73 if (sb->s_flags & MS_RDONLY) in hfs_mark_mdb_dirty()
117 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) in hfs_remount()
119 if (!(*flags & MS_RDONLY)) { in hfs_remount()
122 sb->s_flags |= MS_RDONLY; in hfs_remount()
123 *flags |= MS_RDONLY; in hfs_remount()
126 sb->s_flags |= MS_RDONLY; in hfs_remount()
127 *flags |= MS_RDONLY; in hfs_remount()
Dmdb.c207 sb->s_flags |= MS_RDONLY; in hfs_mdb_get()
211 sb->s_flags |= MS_RDONLY; in hfs_mdb_get()
213 if (!(sb->s_flags & MS_RDONLY)) { in hfs_mdb_get()
262 if (sb->s_flags & MS_RDONLY) in hfs_mdb_commit()
337 if (sb->s_flags & MS_RDONLY) in hfs_mdb_close()
/linux-4.1.27/fs/xfs/
Dxfs_quotaops.c128 if (sb->s_flags & MS_RDONLY) in xfs_fs_set_info()
178 if (sb->s_flags & MS_RDONLY) in xfs_quota_enable()
193 if (sb->s_flags & MS_RDONLY) in xfs_quota_disable()
211 if (sb->s_flags & MS_RDONLY) in xfs_fs_rm_xquota()
252 if (sb->s_flags & MS_RDONLY) in xfs_fs_set_dqblk()
Dxfs_super.c195 if (sb->s_flags & MS_RDONLY) in xfs_parseargs()
1229 if ((mp->m_flags & XFS_MOUNT_RDONLY) && !(*flags & MS_RDONLY)) { in xfs_fs_remount()
1270 if (!(mp->m_flags & XFS_MOUNT_RDONLY) && (*flags & MS_RDONLY)) { in xfs_fs_remount()
/linux-4.1.27/fs/nilfs2/
Dsuper.c126 if (!(sb->s_flags & MS_RDONLY)) { in nilfs_error()
131 sb->s_flags |= MS_RDONLY; in nilfs_error()
486 if (!(sb->s_flags & MS_RDONLY)) { in nilfs_put_super()
587 if (sb->s_flags & MS_RDONLY) in nilfs_freeze()
601 if (sb->s_flags & MS_RDONLY) in nilfs_unfreeze()
909 if (!(sb->s_flags & MS_RDONLY) && features) { in nilfs_check_feature_compatibility()
1093 if (!(sb->s_flags & MS_RDONLY)) { in nilfs_fill_super()
1105 if (!(sb->s_flags & MS_RDONLY)) { in nilfs_fill_super()
1155 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) in nilfs_remount()
1157 if (*flags & MS_RDONLY) { in nilfs_remount()
[all …]
Dthe_nilfs.c223 if (s_flags & MS_RDONLY) { in load_nilfs()
290 if (s_flags & MS_RDONLY) { in load_nilfs()
314 sb->s_flags &= ~MS_RDONLY; in load_nilfs()
Dmdt.c436 if (inode && (inode->i_sb->s_flags & MS_RDONLY)) { in nilfs_mdt_write_page()
Dinode.c181 if (inode->i_sb->s_flags & MS_RDONLY) { in nilfs_writepages()
198 if (inode->i_sb->s_flags & MS_RDONLY) { in nilfs_writepage()
/linux-4.1.27/fs/jfs/
Dsuper.c78 if (sb->s_flags & MS_RDONLY) in jfs_handle_error()
89 sb->s_flags |= MS_RDONLY; in jfs_handle_error()
441 if (sb->s_flags & MS_RDONLY) { in jfs_remount()
450 if ((sb->s_flags & MS_RDONLY) && !(*flags & MS_RDONLY)) { in jfs_remount()
461 sb->s_flags &= ~MS_RDONLY; in jfs_remount()
466 if ((!(sb->s_flags & MS_RDONLY)) && (*flags & MS_RDONLY)) { in jfs_remount()
475 if (!(sb->s_flags & MS_RDONLY)) { in jfs_remount()
568 if (sb->s_flags & MS_RDONLY) in jfs_fill_super()
634 if (!(sb->s_flags & MS_RDONLY)) { in jfs_freeze()
664 if (!(sb->s_flags & MS_RDONLY)) { in jfs_unfreeze()
Djfs_mount.c365 !(sb->s_flags & MS_RDONLY)) { in chkSuper()
/linux-4.1.27/fs/btrfs/
Dsuper.c114 if (sb->s_flags & MS_RDONLY) in btrfs_handle_error()
118 sb->s_flags |= MS_RDONLY; in btrfs_handle_error()
148 if (errno == -EROFS && (sb->s_flags & MS_RDONLY)) in __btrfs_std_error()
226 if (errno == -EROFS && (sb->s_flags & MS_RDONLY)) in __btrfs_std_error()
904 if (!(sb->s_flags & MS_RDONLY)) { in get_default_root()
1205 if (flags & MS_RDONLY) { in mount_subvol()
1206 mnt = vfs_kern_mount(&btrfs_fs_type, flags & ~MS_RDONLY, device_name, in mount_subvol()
1210 mnt = vfs_kern_mount(&btrfs_fs_type, flags | MS_RDONLY, device_name, in mount_subvol()
1315 if (!(flags & MS_RDONLY)) in btrfs_mount()
1369 if (!(flags & MS_RDONLY) && fs_devices->rw_devices == 0) { in btrfs_mount()
[all …]
Droot-tree.c233 if (tree_root->fs_info->sb->s_flags & MS_RDONLY) in btrfs_find_orphan_roots()
Ddisk-io.c2358 if (fs_info->sb->s_flags & MS_RDONLY) { in btrfs_replay_log()
2656 ret = btrfs_check_super_valid(fs_info, sb->s_flags & MS_RDONLY); in open_ctree()
2764 if (!(sb->s_flags & MS_RDONLY) && features) { in open_ctree()
2929 !(sb->s_flags & MS_RDONLY)) { in open_ctree()
2989 if (!(sb->s_flags & MS_RDONLY)) { in open_ctree()
3015 if (sb->s_flags & MS_RDONLY) in open_ctree()
3743 if (!(fs_info->sb->s_flags & MS_RDONLY)) { in close_ctree()
Dsysfs.c374 if (fs_info->sb->s_flags & MS_RDONLY) in btrfs_label_store()
Ddev-replace.c696 if (fs_info->sb->s_flags & MS_RDONLY) in __btrfs_dev_replace_cancel()
Dextent_io.c2038 ASSERT(!(fs_info->sb->s_flags & MS_RDONLY)); in repair_io_failure()
2091 if (root->fs_info->sb->s_flags & MS_RDONLY) in repair_eb_io_failure()
2143 if (fs_info->sb->s_flags & MS_RDONLY) in clean_io_failure()
Dvolumes.c2109 if ((sb->s_flags & MS_RDONLY) && !root->fs_info->fs_devices->seeding) in btrfs_init_new_device()
2181 sb->s_flags &= ~MS_RDONLY; in btrfs_init_new_device()
3658 if (fs_info->sb->s_flags & MS_RDONLY) in btrfs_cancel_balance()
Dctree.h3667 return (root->fs_info->sb->s_flags & MS_RDONLY || in btrfs_need_cleaner_sleep()
Dioctl.c4303 if (root->fs_info->sb->s_flags & MS_RDONLY) { in btrfs_ioctl_dev_replace()
Dinode.c5589 if (!(inode->i_sb->s_flags & MS_RDONLY)) in btrfs_lookup_dentry()
/linux-4.1.27/init/
Ddo_mounts.c40 int root_mountflags = MS_RDONLY | MS_SILENT;
58 root_mountflags |= MS_RDONLY; in readonly()
66 root_mountflags &= ~MS_RDONLY; in readwrite()
376 s->s_flags & MS_RDONLY ? " readonly" : "", in do_mount_root()
423 if (!(flags & MS_RDONLY)) { in mount_block_root()
424 flags |= MS_RDONLY; in mount_block_root()
Ddo_mounts_initrd.c61 mount_block_root("/dev/root.old", root_mountflags & ~MS_RDONLY); in handle_initrd()
/linux-4.1.27/fs/ntfs/
Dsuper.c476 *flags |= MS_RDONLY; in ntfs_remount()
490 if ((sb->s_flags & MS_RDONLY) && !(*flags & MS_RDONLY)) { in ntfs_remount()
551 } else if (!(sb->s_flags & MS_RDONLY) && (*flags & MS_RDONLY)) { in ntfs_remount()
735 if (!(sb->s_flags & MS_RDONLY)) { in read_ntfs_boot_sector()
1792 if (!(sb->s_flags & MS_RDONLY)) { in load_system_files()
1802 sb->s_flags |= MS_RDONLY; in load_system_files()
1931 if (!(sb->s_flags & MS_RDONLY)) { in load_system_files()
1940 sb->s_flags |= MS_RDONLY; in load_system_files()
1964 if (!(sb->s_flags & MS_RDONLY)) { in load_system_files()
1977 sb->s_flags |= MS_RDONLY; in load_system_files()
[all …]
/linux-4.1.27/fs/
Dsuper.c707 if (!(flags & MS_RDONLY) && bdev_read_only(sb->s_bdev)) in do_remount_sb()
711 remount_ro = (flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY); in do_remount_sb()
722 remount_ro = (flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY); in do_remount_sb()
784 !(sb->s_flags & MS_RDONLY)) { in do_emergency_remount()
788 do_remount_sb(sb, MS_RDONLY, NULL, 1); in do_emergency_remount()
958 if (!(flags & MS_RDONLY)) in mount_bdev()
983 if ((flags ^ s->s_flags) & MS_RDONLY) { in mount_bdev()
1306 if (sb->s_flags & MS_RDONLY) { in freeze_super()
1375 if (sb->s_flags & MS_RDONLY) in thaw_super()
Dsync.c60 if (sb->s_flags & MS_RDONLY) in sync_filesystem()
72 if (!(sb->s_flags & MS_RDONLY)) in sync_inodes_one_sb()
78 if (!(sb->s_flags & MS_RDONLY) && sb->s_op->sync_fs) in sync_fs_one_sb()
Dproc_namespace.c176 seq_puts(m, sb->s_flags & MS_RDONLY ? " ro" : " rw"); in show_mountinfo()
Dnamespace.c278 if (mnt->mnt_sb->s_flags & MS_RDONLY) in __mnt_is_readonly()
1505 if (!(sb->s_flags & MS_RDONLY)) in do_umount()
1506 retval = do_remount_sb(sb, MS_RDONLY, NULL, 0); in do_umount()
2127 if (ms_flags & MS_RDONLY) in change_mount_flags()
2691 if (flags & MS_RDONLY) in do_mount()
Dnamei.c440 if ((sb->s_flags & MS_RDONLY) && in sb_permission()
/linux-4.1.27/fs/hpfs/
Dsuper.c24 if (hpfs_sb(s)->sb_chkdsk && (remount || !(s->s_flags & MS_RDONLY))) { in mark_dirty()
44 if (s->s_flags & MS_RDONLY) return; in unmark_dirty()
76 if (s->s_flags & MS_RDONLY) in hpfs_error()
81 s->s_flags |= MS_RDONLY; in hpfs_error()
83 } else if (s->s_flags & MS_RDONLY) in hpfs_error()
464 if (!(*flags & MS_RDONLY)) mark_dirty(s, 1); in hpfs_remount_fs()
583 if (!(s->s_flags & MS_RDONLY) && in hpfs_fill_super()
639 if (!(s->s_flags & MS_RDONLY)) { in hpfs_fill_super()
Ddir.c261 if (de->has_acl || de->has_xtd_perm) if (!(dir->i_sb->s_flags & MS_RDONLY)) { in hpfs_lookup()
Dmap.c264 …+ de->namelen + de->down*4 + 3) & ~3) < le16_to_cpu(de->length) && s->s_flags & MS_RDONLY) goto ok; in hpfs_map_dnode()
/linux-4.1.27/fs/ext3/
Dsuper.c73 if (sb->s_flags & MS_RDONLY) in ext3_journal_start_sb()
165 if (sb->s_flags & MS_RDONLY) in ext3_handle_error()
183 sb->s_flags |= MS_RDONLY; in ext3_handle_error()
256 (sb->s_flags & MS_RDONLY)) in __ext3_std_error()
294 if (sb->s_flags & MS_RDONLY) in ext3_abort()
306 sb->s_flags |= MS_RDONLY; in ext3_abort()
428 if (!(sb->s_flags & MS_RDONLY)) { in ext3_put_super()
1383 res = MS_RDONLY; in ext3_setup_super()
1545 if (es->s_last_orphan && !(s_flags & MS_RDONLY)) { in ext3_orphan_cleanup()
1554 if (s_flags & MS_RDONLY) { in ext3_orphan_cleanup()
[all …]
Dfsync.c51 if (inode->i_sb->s_flags & MS_RDONLY) { in ext3_sync_file()
/linux-4.1.27/include/uapi/linux/
Dfs.h68 #define MS_RDONLY 1 /* Mount read-only */ macro
104 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION|\
Dbfs_fs.h78 …2_to_cpu(bfs_sb->s_from) != -1) && (le32_to_cpu(bfs_sb->s_to) != -1) && !(sb->s_flags & MS_RDONLY))
/linux-4.1.27/fs/affs/
Dsuper.c79 if (sb->s_flags & MS_RDONLY) in affs_mark_sb_dirty()
430 || chksum == MUFS_DCOFS) && !(sb->s_flags & MS_RDONLY)) { in affs_fill_super()
432 sb->s_flags |= MS_RDONLY; in affs_fill_super()
563 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) in affs_remount()
566 if (*flags & MS_RDONLY) in affs_remount()
Dbitmap.c22 if (sb->s_flags & MS_RDONLY) in affs_count_free_blocks()
252 if (*flags & MS_RDONLY) in affs_init_bitmap()
257 *flags |= MS_RDONLY; in affs_init_bitmap()
290 *flags |= MS_RDONLY; in affs_init_bitmap()
Damigaffs.c452 if (!(sb->s_flags & MS_RDONLY)) in affs_error()
454 sb->s_flags |= MS_RDONLY; in affs_error()
/linux-4.1.27/fs/ext2/
Dsuper.c55 if (!(sb->s_flags & MS_RDONLY)) { in ext2_error()
78 sb->s_flags |= MS_RDONLY; in ext2_error()
135 if (!(sb->s_flags & MS_RDONLY)) { in ext2_put_super()
621 res = MS_RDONLY; in ext2_setup_super()
905 if (!(sb->s_flags & MS_RDONLY) && in ext2_fill_super()
1134 if (ext2_setup_super (sb, es, sb->s_flags & MS_RDONLY)) in ext2_fill_super()
1135 sb->s_flags |= MS_RDONLY; in ext2_fill_super()
1263 if (!(sb->s_flags & MS_RDONLY)) in ext2_write_super()
1301 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) { in ext2_remount()
1305 if (*flags & MS_RDONLY) { in ext2_remount()
[all …]
/linux-4.1.27/fs/efs/
Dsuper.c118 *flags |= MS_RDONLY; in efs_remount()
309 if (!(s->s_flags & MS_RDONLY)) { in efs_fill_super()
313 s->s_flags |= MS_RDONLY; in efs_fill_super()
/linux-4.1.27/fs/freevxfs/
Dvxfs_super.c128 *flags |= MS_RDONLY; in vxfs_remount()
157 sbp->s_flags |= MS_RDONLY; in vxfs_fill_super()
/linux-4.1.27/fs/ext4/
Dsuper.c380 if (sb->s_flags & MS_RDONLY) in ext4_handle_error()
397 sb->s_flags |= MS_RDONLY; in ext4_handle_error()
545 (sb->s_flags & MS_RDONLY)) in __ext4_std_error()
581 if ((sb->s_flags & MS_RDONLY) == 0) { in __ext4_abort()
589 sb->s_flags |= MS_RDONLY; in __ext4_abort()
799 if (!(sb->s_flags & MS_RDONLY)) { in ext4_put_super()
803 if (!(sb->s_flags & MS_RDONLY)) in ext4_put_super()
1875 seq_puts(seq, (sb->s_flags & MS_RDONLY) ? "ro" : "rw"); in options_seq_show()
1903 res = MS_RDONLY; in ext4_setup_super()
2142 if (!(sb->s_flags & MS_RDONLY)) { in ext4_check_descriptors()
[all …]
Dfsync.c100 if (inode->i_sb->s_flags & MS_RDONLY) { in ext4_sync_file()
Dext4_jbd2.c46 if (sb->s_flags & MS_RDONLY) in ext4_journal_check_start()
Dmmp.c182 if (sb->s_flags & MS_RDONLY) { in kmmpd()
Dfile.c262 !(sb->s_flags & MS_RDONLY))) { in ext4_file_open()
Dialloc.c1266 if (sb->s_flags & MS_RDONLY) { in ext4_init_inode_table()
/linux-4.1.27/fs/reiserfs/
Dsuper.c107 if (s->s_flags & MS_RDONLY || !(s->s_flags & MS_ACTIVE)) in reiserfs_schedule_old_flush()
136 if (!(s->s_flags & MS_RDONLY)) { in reiserfs_freeze()
552 if (!(s->s_flags & MS_RDONLY)) { in reiserfs_put_super()
653 if (inode->i_sb->s_flags & MS_RDONLY) { in reiserfs_dirty_inode()
1469 if (*mount_flags & MS_RDONLY) { in reiserfs_remount()
1473 if (s->s_flags & MS_RDONLY) in reiserfs_remount()
1499 if (!(s->s_flags & MS_RDONLY)) { in reiserfs_remount()
1515 s->s_flags &= ~MS_RDONLY; in reiserfs_remount()
1523 s->s_flags &= ~MS_RDONLY; in reiserfs_remount()
1538 if (!(*mount_flags & MS_RDONLY)) { in reiserfs_remount()
[all …]
Dprints.c391 if (sb->s_flags & MS_RDONLY) in __reiserfs_error()
395 sb->s_flags |= MS_RDONLY; in __reiserfs_error()
414 sb->s_flags |= MS_RDONLY; in reiserfs_abort()
Dxattr.c1029 if (d_really_is_negative(privroot) && !(mount_flags & MS_RDONLY)) { in reiserfs_xattr_init()
Djournal.c1921 if (!error && !(sb->s_flags & MS_RDONLY)) { in do_journal_release()
4397 sb->s_flags |= MS_RDONLY; in reiserfs_abort_journal()
Dinode.c1780 if (inode->i_sb->s_flags & MS_RDONLY) in reiserfs_write_inode()
/linux-4.1.27/fs/ocfs2/
Dsuper.c679 if ((*flags & MS_RDONLY) != (sb->s_flags & MS_RDONLY)) { in ocfs2_remount()
681 if (*flags & MS_RDONLY) { in ocfs2_remount()
695 if (*flags & MS_RDONLY) { in ocfs2_remount()
696 sb->s_flags |= MS_RDONLY; in ocfs2_remount()
713 sb->s_flags &= ~MS_RDONLY; in ocfs2_remount()
720 if (!ret && !(*flags & MS_RDONLY)) { in ocfs2_remount()
728 sb->s_flags |= MS_RDONLY; in ocfs2_remount()
1068 if (!(sb->s_flags & MS_RDONLY)) { in ocfs2_fill_super()
1103 if (sb->s_flags & MS_RDONLY) in ocfs2_fill_super()
1184 if (!(sb->s_flags & MS_RDONLY)) { in ocfs2_fill_super()
[all …]
/linux-4.1.27/fs/minix/
Dinode.c45 if (!(sb->s_flags & MS_RDONLY)) { in minix_put_super()
128 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) in minix_remount()
130 if (*flags & MS_RDONLY) { in minix_remount()
296 if (!(s->s_flags & MS_RDONLY)) { in minix_fill_super()
/linux-4.1.27/fs/fat/
Dmisc.c35 else if (opts->errors == FAT_ERRORS_RO && !(sb->s_flags & MS_RDONLY)) { in __fat_fs_error()
36 sb->s_flags |= MS_RDONLY; in __fat_fs_error()
Dinode.c576 if ((sb->s_flags & MS_RDONLY) && !force) in fat_set_state()
705 new_rdonly = *flags & MS_RDONLY; in fat_remount()
706 if (new_rdonly != (sb->s_flags & MS_RDONLY)) { in fat_remount()
1264 sb->s_flags |= MS_RDONLY; in parse_options()
Dfatent.c312 if (sb->s_flags & MS_RDONLY || sbi->fat_bits != 32) in mark_fsinfo_dirty()
/linux-4.1.27/tools/testing/selftests/mount/
Dunprivileged-remount-test.c132 mnt_flags |= MS_RDONLY; in read_mnt_flags()
320 if (!test_unpriv_remount_simple(MS_RDONLY)) { in main()
/linux-4.1.27/fs/udf/
Dsuper.c655 if (write_rev > UDF_MAX_WRITE_VERSION && !(*flags & MS_RDONLY)) in udf_remount_fs()
678 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) in udf_remount_fs()
681 if (*flags & MS_RDONLY) in udf_remount_fs()
1024 if (sb->s_flags & MS_RDONLY) in udf_load_metadata_files()
1347 if (!(sb->s_flags & MS_RDONLY)) { in udf_load_partdesc()
2173 !(sb->s_flags & MS_RDONLY)) { in udf_fill_super()
2194 !(sb->s_flags & MS_RDONLY)) { in udf_fill_super()
2213 if (!(sb->s_flags & MS_RDONLY)) in udf_fill_super()
2245 if (!(sb->s_flags & MS_RDONLY)) in udf_fill_super()
2298 if (!(sb->s_flags & MS_RDONLY)) in udf_put_super()
/linux-4.1.27/fs/jffs2/
Dfs.c399 if (c->flags & JFFS2_SB_FLAG_RO && !(sb->s_flags & MS_RDONLY)) in jffs2_do_remount_fs()
406 if (!(sb->s_flags & MS_RDONLY)) { in jffs2_do_remount_fs()
413 if (!(*flags & MS_RDONLY)) in jffs2_do_remount_fs()
594 if (!(sb->s_flags & MS_RDONLY)) in jffs2_do_fill_super()
Dos-linux.h62 #define jffs2_is_readonly(c) (OFNI_BS_2SFFJ(c)->s_flags & MS_RDONLY)
Dsuper.c348 if (!(sb->s_flags & MS_RDONLY)) in jffs2_kill_sb()
Dwbuf.c1165 if (!(sb->s_flags & MS_RDONLY)) { in delayed_wbuf_sync()
1176 if (sb->s_flags & MS_RDONLY) in jffs2_dirty_trigger()
/linux-4.1.27/fs/gfs2/
Dops_fstype.c1033 sprintf(ro, "RDONLY=%d", (sb->s_flags & MS_RDONLY) ? 1 : 0); in gfs2_online_uevent()
1061 sb->s_flags |= MS_RDONLY; in fill_super()
1175 if (!(sb->s_flags & MS_RDONLY)) { in fill_super()
1258 if (!(flags & MS_RDONLY)) in gfs2_mount()
1311 if ((flags ^ s->s_flags) & MS_RDONLY) in gfs2_mount()
1366 if ((flags ^ s->s_flags) & MS_RDONLY) { in gfs2_mount_meta()
Dsuper.c890 if (!(sb->s_flags & MS_RDONLY)) { in gfs2_put_super()
1246 *flags |= MS_RDONLY; in gfs2_remount_fs()
1248 if ((sb->s_flags ^ *flags) & MS_RDONLY) { in gfs2_remount_fs()
1249 if (*flags & MS_RDONLY) in gfs2_remount_fs()
1522 if (inode->i_nlink || (sb->s_flags & MS_RDONLY)) in gfs2_evict_inode()
Drecovery.c525 if (sdp->sd_vfs->s_flags & MS_RDONLY) { in gfs2_recover_func()
Dglops.c542 if (!remote || (sdp->sd_vfs->s_flags & MS_RDONLY)) in iopen_go_callback()
Dsys.c628 sprintf(ro, "RDONLY=%d", (sb->s_flags & MS_RDONLY) ? 1 : 0); in gfs2_sys_fs_add()
Dquota.c455 if (sdp->sd_vfs->s_flags & MS_RDONLY) in qd_fish()
/linux-4.1.27/fs/qnx4/
Dinode.c50 *flags |= MS_RDONLY; in qnx4_remount()
202 s->s_flags |= MS_RDONLY; /* Yup, read-only yet */ in qnx4_fill_super()
/linux-4.1.27/fs/sysv/
Dinode.c65 *flags |= MS_RDONLY; in sysv_remount()
73 if (!(sb->s_flags & MS_RDONLY)) { in sysv_put_super()
Dballoc.c234 if (!(sb->s_flags & MS_RDONLY)) { in sysv_count_free_blocks()
Dialloc.c223 if (!(sb->s_flags & MS_RDONLY)) { in sysv_count_free_inodes()
Dsuper.c219 if (!(sb->s_flags & MS_RDONLY)) { in detect_sysv()
336 sb->s_flags |= MS_RDONLY; in complete_read_super()
/linux-4.1.27/fs/overlayfs/
Dsuper.c537 if (!(*flags & MS_RDONLY) && (!ufs->upper_mnt || !ufs->workdir)) in ovl_remount()
865 if (upperpath.mnt->mnt_sb->s_flags & MS_RDONLY) { in ovl_fill_super()
936 sb->s_flags |= MS_RDONLY; in ovl_fill_super()
965 sb->s_flags |= MS_RDONLY; in ovl_fill_super()
/linux-4.1.27/fs/squashfs/
Dsuper.c199 sb->s_flags |= MS_RDONLY; in squashfs_fill_super()
377 *flags |= MS_RDONLY; in squashfs_remount()
/linux-4.1.27/fs/befs/
Dlinuxvfs.c796 if (!(sb->s_flags & MS_RDONLY)) { in befs_fill_super()
799 sb->s_flags |= MS_RDONLY; in befs_fill_super()
898 if (!(*flags & MS_RDONLY)) in befs_remount()
DChangeLog368 By setting the MS_RDONLY flag in befs_read_super().
/linux-4.1.27/arch/sh/kernel/
Dsetup.c265 root_mountflags &= ~MS_RDONLY; in setup_arch()
/linux-4.1.27/fs/romfs/
Dsuper.c437 *flags |= MS_RDONLY; in romfs_remount()
488 sb->s_flags |= MS_RDONLY | MS_NOATIME; in romfs_fill_super()
/linux-4.1.27/fs/cramfs/
Dinode.c252 *flags |= MS_RDONLY; in cramfs_remount()
264 sb->s_flags |= MS_RDONLY; in cramfs_fill_super()
/linux-4.1.27/arch/sparc/kernel/
Dsetup_32.c358 root_mountflags &= ~MS_RDONLY; in setup_arch()
Dsetup_64.c612 root_mountflags &= ~MS_RDONLY; in setup_arch()
/linux-4.1.27/arch/arm/kernel/
Datags_parse.c58 root_mountflags &= ~MS_RDONLY; in parse_tag_core()
/linux-4.1.27/fs/cachefiles/
Dbind.c136 if (root->d_sb->s_flags & MS_RDONLY) in cachefiles_daemon_add_cache()
/linux-4.1.27/fs/ecryptfs/
Dmain.c572 if (path.dentry->d_sb->s_flags & MS_RDONLY || in ecryptfs_mount()
574 s->s_flags |= MS_RDONLY; in ecryptfs_mount()
/linux-4.1.27/arch/m32r/kernel/
Dsetup.c241 root_mountflags &= ~MS_RDONLY; in setup_arch()
/linux-4.1.27/fs/qnx6/
Dinode.c59 *flags |= MS_RDONLY; in qnx6_remount()
430 s->s_flags |= MS_RDONLY; /* Yup, read-only yet */ in qnx6_fill_super()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dllite_lib.c225 if (sb->s_flags & MS_RDONLY) in client_common_fill_super()
1977 if ((*flags & MS_RDONLY) != (sb->s_flags & MS_RDONLY)) { in ll_remount_fs()
1978 read_only = *flags & MS_RDONLY; in ll_remount_fs()
1991 sb->s_flags |= MS_RDONLY; in ll_remount_fs()
1993 sb->s_flags &= ~MS_RDONLY; in ll_remount_fs()
/linux-4.1.27/fs/f2fs/
Dsuper.c690 if (f2fs_readonly(sb) && (*flags & MS_RDONLY)) in f2fs_remount()
698 if ((*flags & MS_RDONLY) || !test_opt(sbi, BG_GC)) { in f2fs_remount()
715 if ((*flags & MS_RDONLY) || !test_opt(sbi, FLUSH_MERGE)) { in f2fs_remount()
Df2fs.h1396 return sb->s_flags & MS_RDONLY; in f2fs_readonly()
1407 sbi->sb->s_flags |= MS_RDONLY; in f2fs_stop_checkpoint()
/linux-4.1.27/fs/ubifs/
Dsuper.c1149 c->ro_mount = !!(c->vfs_sb->s_flags & MS_RDONLY); in mount_ubifs()
1841 if (c->ro_mount && !(*flags & MS_RDONLY)) { in ubifs_remount_fs()
1853 } else if (!c->ro_mount && (*flags & MS_RDONLY)) { in ubifs_remount_fs()
2132 if (!!(flags & MS_RDONLY) != c1->ro_mount) { in ubifs_mount()
Dio.c87 c->vfs_sb->s_flags |= MS_RDONLY; in ubifs_ro_mode()
/linux-4.1.27/arch/arc/kernel/
Dsetup.c372 root_mountflags &= ~MS_RDONLY; in setup_arch()
/linux-4.1.27/arch/avr32/kernel/
Dsetup.c309 root_mountflags &= ~MS_RDONLY; in parse_tag_core()
/linux-4.1.27/fs/isofs/
Dinode.c117 if (!(*flags & MS_RDONLY)) in isofs_remount()
1507 if (!(flags & MS_RDONLY)) in isofs_mount()
/linux-4.1.27/fs/nfs/
Dinternal.h11 #define NFS_MS_MASK (MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_SYNCHRONOUS)
Dsuper.c817 seq_puts(m, root->d_sb->s_flags & MS_RDONLY ? "ro" : "rw"); in nfs_show_stats()
/linux-4.1.27/arch/x86/kernel/
Dsetup.c961 root_mountflags &= ~MS_RDONLY; in setup_arch()
/linux-4.1.27/fs/logfs/
Dsuper.c546 err = logfs_read_sb(sb, sb->s_flags & MS_RDONLY); in logfs_get_sb_device()
/linux-4.1.27/fs/cifs/
Dcifsglob.h512 #define CIFS_MS_MASK (MS_RDONLY | MS_MANDLOCK | MS_NOEXEC | MS_NOSUID | \
/linux-4.1.27/fs/quota/
Dquota.c694 if (sb->s_flags & MS_RDONLY) in do_quotactl()
/linux-4.1.27/include/linux/
Dfs.h1747 #define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY)
1753 #define IS_NOATIME(inode) __IS_FLG(inode, MS_RDONLY|MS_NOATIME)