Home
last modified time | relevance | path

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

/linux-4.4.14/fs/hfsplus/
Dsuper.c264 if (sb->s_flags & MS_RDONLY) in hfsplus_mark_mdb_dirty()
284 if (!(sb->s_flags & MS_RDONLY) && sbi->s_vhdr) { in hfsplus_put_super()
329 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) in hfsplus_remount()
331 if (!(*flags & MS_RDONLY)) { in hfsplus_remount()
340 sb->s_flags |= MS_RDONLY; in hfsplus_remount()
341 *flags |= MS_RDONLY; in hfsplus_remount()
347 sb->s_flags |= MS_RDONLY; in hfsplus_remount()
348 *flags |= MS_RDONLY; in hfsplus_remount()
352 sb->s_flags |= MS_RDONLY; in hfsplus_remount()
353 *flags |= MS_RDONLY; in hfsplus_remount()
[all …]
/linux-4.4.14/fs/ufs/
Dsuper.c281 if (!(sb->s_flags & MS_RDONLY)) { in ufs_error()
285 sb->s_flags |= MS_RDONLY; in ufs_error()
315 if (!(sb->s_flags & MS_RDONLY)) { in ufs_panic()
323 sb->s_flags |= MS_RDONLY; in ufs_panic()
737 if (!(sb->s_flags & MS_RDONLY)) in ufs_put_super()
771 if (!(sb->s_flags & MS_RDONLY)) { in ufs_fill_super()
783 UFSD("flag %u\n", (int)(sb->s_flags & MS_RDONLY)); in ufs_fill_super()
881 if (!(sb->s_flags & MS_RDONLY)) { in ufs_fill_super()
884 sb->s_flags |= MS_RDONLY; in ufs_fill_super()
897 if (!(sb->s_flags & MS_RDONLY)) { in ufs_fill_super()
[all …]
/linux-4.4.14/fs/hfs/
Dsuper.c74 if (sb->s_flags & MS_RDONLY) in hfs_mark_mdb_dirty()
118 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) in hfs_remount()
120 if (!(*flags & MS_RDONLY)) { in hfs_remount()
123 sb->s_flags |= MS_RDONLY; in hfs_remount()
124 *flags |= MS_RDONLY; in hfs_remount()
127 sb->s_flags |= MS_RDONLY; in hfs_remount()
128 *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.4.14/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.c197 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.4.14/fs/nilfs2/
Dsuper.c126 if (!(sb->s_flags & MS_RDONLY)) { in nilfs_error()
131 sb->s_flags |= MS_RDONLY; in nilfs_error()
489 if (!(sb->s_flags & MS_RDONLY)) { in nilfs_put_super()
590 if (sb->s_flags & MS_RDONLY) in nilfs_freeze()
604 if (sb->s_flags & MS_RDONLY) in nilfs_unfreeze()
912 if (!(sb->s_flags & MS_RDONLY) && features) { in nilfs_check_feature_compatibility()
1096 if (!(sb->s_flags & MS_RDONLY)) { in nilfs_fill_super()
1108 if (!(sb->s_flags & MS_RDONLY)) { in nilfs_fill_super()
1158 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) in nilfs_remount()
1160 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.c442 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.4.14/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()
565 if (sb->s_flags & MS_RDONLY) in jfs_fill_super()
631 if (!(sb->s_flags & MS_RDONLY)) { in jfs_freeze()
661 if (!(sb->s_flags & MS_RDONLY)) { in jfs_unfreeze()
Djfs_mount.c365 !(sb->s_flags & MS_RDONLY)) { in chkSuper()
/linux-4.4.14/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.4.14/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.4.14/fs/btrfs/
Dsuper.c114 if (sb->s_flags & MS_RDONLY) in btrfs_handle_error()
118 sb->s_flags |= MS_RDONLY; in btrfs_handle_error()
150 if (errno == -EROFS && (sb->s_flags & MS_RDONLY)) in __btrfs_std_error()
1290 if (flags & MS_RDONLY) { in mount_subvol()
1291 mnt = vfs_kern_mount(&btrfs_fs_type, flags & ~MS_RDONLY, in mount_subvol()
1294 mnt = vfs_kern_mount(&btrfs_fs_type, flags | MS_RDONLY, in mount_subvol()
1444 if (!(flags & MS_RDONLY)) in btrfs_mount()
1498 if (!(flags & MS_RDONLY) && fs_devices->rw_devices == 0) { in btrfs_mount()
1514 if ((flags ^ s->s_flags) & MS_RDONLY) in btrfs_mount()
1584 (flags & MS_RDONLY))) { in btrfs_remount_begin()
[all …]
Droot-tree.c234 if (tree_root->fs_info->sb->s_flags & MS_RDONLY) in btrfs_find_orphan_roots()
Ddisk-io.c2407 if (fs_info->sb->s_flags & MS_RDONLY) { in btrfs_replay_log()
2704 ret = btrfs_check_super_valid(fs_info, sb->s_flags & MS_RDONLY); in open_ctree()
2812 if (!(sb->s_flags & MS_RDONLY) && features) { in open_ctree()
2994 !(sb->s_flags & MS_RDONLY)) { in open_ctree()
3055 if (!(sb->s_flags & MS_RDONLY)) { in open_ctree()
3081 if (sb->s_flags & MS_RDONLY) in open_ctree()
3837 if (!(fs_info->sb->s_flags & MS_RDONLY)) { in close_ctree()
Dsysfs.c375 if (fs_info->sb->s_flags & MS_RDONLY) in btrfs_label_store()
Ddev-replace.c697 if (fs_info->sb->s_flags & MS_RDONLY) in __btrfs_dev_replace_cancel()
Dextent_io.c2106 ASSERT(!(fs_info->sb->s_flags & MS_RDONLY)); in repair_io_failure()
2159 if (root->fs_info->sb->s_flags & MS_RDONLY) in repair_eb_io_failure()
2211 if (fs_info->sb->s_flags & MS_RDONLY) in clean_io_failure()
Dvolumes.c2254 if ((sb->s_flags & MS_RDONLY) && !root->fs_info->fs_devices->seeding) in btrfs_init_new_device()
2326 sb->s_flags &= ~MS_RDONLY; in btrfs_init_new_device()
3947 if (fs_info->sb->s_flags & MS_RDONLY) in btrfs_cancel_balance()
Dctree.h3725 return (root->fs_info->sb->s_flags & MS_RDONLY || in btrfs_need_cleaner_sleep()
Dioctl.c4468 if (root->fs_info->sb->s_flags & MS_RDONLY) { in btrfs_ioctl_dev_replace()
Dinode.c5660 if (!(inode->i_sb->s_flags & MS_RDONLY)) in btrfs_lookup_dentry()
/linux-4.4.14/fs/
Dsuper.c723 if (!(flags & MS_RDONLY) && bdev_read_only(sb->s_bdev)) in do_remount_sb()
727 remount_ro = (flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY); in do_remount_sb()
738 remount_ro = (flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY); in do_remount_sb()
800 !(sb->s_flags & MS_RDONLY)) { in do_emergency_remount()
804 do_remount_sb(sb, MS_RDONLY, NULL, 1); in do_emergency_remount()
974 if (!(flags & MS_RDONLY)) in mount_bdev()
999 if ((flags ^ s->s_flags) & MS_RDONLY) { in mount_bdev()
1292 if (sb->s_flags & MS_RDONLY) { in freeze_super()
1354 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.c177 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()
1516 if (!(sb->s_flags & MS_RDONLY)) in do_umount()
1517 retval = do_remount_sb(sb, MS_RDONLY, NULL, 0); in do_umount()
2138 if (ms_flags & MS_RDONLY) in change_mount_flags()
2700 if (flags & MS_RDONLY) in do_mount()
Dnamei.c440 if ((sb->s_flags & MS_RDONLY) && in sb_permission()
/linux-4.4.14/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()
491 if (!(*flags & MS_RDONLY)) mark_dirty(s, 1); in hpfs_remount_fs()
610 if (!(s->s_flags & MS_RDONLY) && in hpfs_fill_super()
669 if (!(s->s_flags & MS_RDONLY)) { in hpfs_fill_super()
Dalloc.c541 if (s->s_flags & MS_RDONLY) { in hpfs_trim_fs()
562 if (s->s_flags & MS_RDONLY) { in hpfs_trim_fs()
Ddir.c261 if (de->has_acl || de->has_xtd_perm) if (!(dir->i_sb->s_flags & MS_RDONLY)) { in hpfs_lookup()
Dmap.c290 …+ 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.4.14/fs/affs/
Dsuper.c80 if (sb->s_flags & MS_RDONLY) in affs_mark_sb_dirty()
432 || chksum == MUFS_DCOFS) && !(sb->s_flags & MS_RDONLY)) { in affs_fill_super()
434 sb->s_flags |= MS_RDONLY; in affs_fill_super()
565 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) in affs_remount()
568 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.4.14/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.4.14/fs/ext4/
Dsuper.c372 if (sb->s_flags & MS_RDONLY) in ext4_handle_error()
389 sb->s_flags |= MS_RDONLY; in ext4_handle_error()
543 (sb->s_flags & MS_RDONLY)) in __ext4_std_error()
579 if ((sb->s_flags & MS_RDONLY) == 0) { in __ext4_abort()
587 sb->s_flags |= MS_RDONLY; in __ext4_abort()
819 if (!(sb->s_flags & MS_RDONLY)) { in ext4_put_super()
823 if (!(sb->s_flags & MS_RDONLY)) in ext4_put_super()
1901 seq_puts(seq, (sb->s_flags & MS_RDONLY) ? "ro" : "rw"); in ext4_seq_options_show()
1916 res = MS_RDONLY; in ext4_setup_super()
2153 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.c188 if (sb->s_flags & MS_RDONLY) { in kmmpd()
Dfile.c370 !(sb->s_flags & MS_RDONLY))) { in ext4_file_open()
Dialloc.c1299 if (sb->s_flags & MS_RDONLY) { in ext4_init_inode_table()
/linux-4.4.14/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()
626 res = MS_RDONLY; in ext2_setup_super()
911 if (!(sb->s_flags & MS_RDONLY) && in ext2_fill_super()
1140 if (ext2_setup_super (sb, es, sb->s_flags & MS_RDONLY)) in ext2_fill_super()
1141 sb->s_flags |= MS_RDONLY; in ext2_fill_super()
1269 if (!(sb->s_flags & MS_RDONLY)) in ext2_write_super()
1307 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) { in ext2_remount()
1311 if (*flags & MS_RDONLY) { in ext2_remount()
[all …]
/linux-4.4.14/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.4.14/fs/freevxfs/
Dvxfs_super.c128 *flags |= MS_RDONLY; in vxfs_remount()
157 sbp->s_flags |= MS_RDONLY; in vxfs_fill_super()
/linux-4.4.14/fs/reiserfs/
Dsuper.c108 if (s->s_flags & MS_RDONLY || !(s->s_flags & MS_ACTIVE)) in reiserfs_schedule_old_flush()
137 if (!(s->s_flags & MS_RDONLY)) { in reiserfs_freeze()
553 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.4.14/fs/ocfs2/
Dsuper.c681 if ((*flags & MS_RDONLY) != (sb->s_flags & MS_RDONLY)) { in ocfs2_remount()
683 if (*flags & MS_RDONLY) { in ocfs2_remount()
697 if (*flags & MS_RDONLY) { in ocfs2_remount()
698 sb->s_flags |= MS_RDONLY; in ocfs2_remount()
715 sb->s_flags &= ~MS_RDONLY; in ocfs2_remount()
722 if (!ret && !(*flags & MS_RDONLY)) { in ocfs2_remount()
730 sb->s_flags |= MS_RDONLY; in ocfs2_remount()
1070 if (!(sb->s_flags & MS_RDONLY)) { in ocfs2_fill_super()
1105 if (sb->s_flags & MS_RDONLY) in ocfs2_fill_super()
1186 if (!(sb->s_flags & MS_RDONLY)) { in ocfs2_fill_super()
[all …]
/linux-4.4.14/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.4.14/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.c577 if ((sb->s_flags & MS_RDONLY) && !force) in fat_set_state()
706 new_rdonly = *flags & MS_RDONLY; in fat_remount()
707 if (new_rdonly != (sb->s_flags & MS_RDONLY)) { in fat_remount()
1265 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.4.14/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.4.14/fs/jffs2/
Dfs.c397 if (c->flags & JFFS2_SB_FLAG_RO && !(sb->s_flags & MS_RDONLY)) in jffs2_do_remount_fs()
404 if (!(sb->s_flags & MS_RDONLY)) { in jffs2_do_remount_fs()
411 if (!(*flags & MS_RDONLY)) in jffs2_do_remount_fs()
592 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.4.14/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()
1030 if (sb->s_flags & MS_RDONLY) in udf_load_metadata_files()
1353 if (!(sb->s_flags & MS_RDONLY)) { in udf_load_partdesc()
2180 !(sb->s_flags & MS_RDONLY)) { in udf_fill_super()
2201 !(sb->s_flags & MS_RDONLY)) { in udf_fill_super()
2220 if (!(sb->s_flags & MS_RDONLY)) { in udf_fill_super()
2307 if (!(sb->s_flags & MS_RDONLY)) in udf_put_super()
/linux-4.4.14/fs/gfs2/
Dops_fstype.c1034 sprintf(ro, "RDONLY=%d", (sb->s_flags & MS_RDONLY) ? 1 : 0); in gfs2_online_uevent()
1062 sb->s_flags |= MS_RDONLY; in fill_super()
1176 if (!(sb->s_flags & MS_RDONLY)) { in fill_super()
1259 if (!(flags & MS_RDONLY)) in gfs2_mount()
1315 if ((flags ^ s->s_flags) & MS_RDONLY) in gfs2_mount()
1369 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.c552 if (!remote || (sdp->sd_vfs->s_flags & MS_RDONLY)) in iopen_go_callback()
Dsys.c658 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.4.14/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.4.14/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.4.14/fs/squashfs/
Dsuper.c199 sb->s_flags |= MS_RDONLY; in squashfs_fill_super()
377 *flags |= MS_RDONLY; in squashfs_remount()
/linux-4.4.14/fs/overlayfs/
Dsuper.c641 if (!(*flags & MS_RDONLY) && (!ufs->upper_mnt || !ufs->workdir)) in ovl_remount()
962 if (upperpath.mnt->mnt_sb->s_flags & MS_RDONLY) { in ovl_fill_super()
1034 sb->s_flags |= MS_RDONLY; in ovl_fill_super()
1063 sb->s_flags |= MS_RDONLY; in ovl_fill_super()
/linux-4.4.14/fs/befs/
Dlinuxvfs.c779 if (!(sb->s_flags & MS_RDONLY)) { in befs_fill_super()
782 sb->s_flags |= MS_RDONLY; in befs_fill_super()
881 if (!(*flags & MS_RDONLY)) in befs_remount()
DChangeLog368 By setting the MS_RDONLY flag in befs_read_super().
/linux-4.4.14/arch/sh/kernel/
Dsetup.c265 root_mountflags &= ~MS_RDONLY; in setup_arch()
/linux-4.4.14/fs/romfs/
Dsuper.c437 *flags |= MS_RDONLY; in romfs_remount()
488 sb->s_flags |= MS_RDONLY | MS_NOATIME; in romfs_fill_super()
/linux-4.4.14/fs/cramfs/
Dinode.c252 *flags |= MS_RDONLY; in cramfs_remount()
264 sb->s_flags |= MS_RDONLY; in cramfs_fill_super()
/linux-4.4.14/arch/arm/kernel/
Datags_parse.c58 root_mountflags &= ~MS_RDONLY; in parse_tag_core()
/linux-4.4.14/arch/sparc/kernel/
Dsetup_32.c358 root_mountflags &= ~MS_RDONLY; in setup_arch()
Dsetup_64.c613 root_mountflags &= ~MS_RDONLY; in setup_arch()
/linux-4.4.14/fs/cachefiles/
Dbind.c136 if (root->d_sb->s_flags & MS_RDONLY) in cachefiles_daemon_add_cache()
/linux-4.4.14/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.4.14/arch/m32r/kernel/
Dsetup.c241 root_mountflags &= ~MS_RDONLY; in setup_arch()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dllite_lib.c213 if (sb->s_flags & MS_RDONLY) in client_common_fill_super()
1874 if ((*flags & MS_RDONLY) != (sb->s_flags & MS_RDONLY)) { in ll_remount_fs()
1875 read_only = *flags & MS_RDONLY; in ll_remount_fs()
1888 sb->s_flags |= MS_RDONLY; in ll_remount_fs()
1890 sb->s_flags &= ~MS_RDONLY; in ll_remount_fs()
/linux-4.4.14/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.4.14/fs/f2fs/
Dsuper.c781 if (f2fs_readonly(sb) && (*flags & MS_RDONLY)) in f2fs_remount()
797 if ((*flags & MS_RDONLY) || !test_opt(sbi, BG_GC)) { in f2fs_remount()
814 if ((*flags & MS_RDONLY) || !test_opt(sbi, FLUSH_MERGE)) { in f2fs_remount()
Df2fs.h1578 return sb->s_flags & MS_RDONLY; in f2fs_readonly()
1589 sbi->sb->s_flags |= MS_RDONLY; in f2fs_stop_checkpoint()
/linux-4.4.14/fs/ubifs/
Dsuper.c1153 c->ro_mount = !!(c->vfs_sb->s_flags & MS_RDONLY); in mount_ubifs()
1845 if (c->ro_mount && !(*flags & MS_RDONLY)) { in ubifs_remount_fs()
1857 } else if (!c->ro_mount && (*flags & MS_RDONLY)) { in ubifs_remount_fs()
2135 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.4.14/arch/avr32/kernel/
Dsetup.c309 root_mountflags &= ~MS_RDONLY; in parse_tag_core()
/linux-4.4.14/arch/arc/kernel/
Dsetup.c425 root_mountflags &= ~MS_RDONLY; in setup_arch()
/linux-4.4.14/fs/isofs/
Dinode.c117 if (!(*flags & MS_RDONLY)) in isofs_remount()
1507 if (!(flags & MS_RDONLY)) in isofs_mount()
/linux-4.4.14/fs/nfs/
Dinternal.h11 #define NFS_MS_MASK (MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_SYNCHRONOUS)
Dsuper.c820 seq_puts(m, root->d_sb->s_flags & MS_RDONLY ? "ro" : "rw"); in nfs_show_stats()
/linux-4.4.14/fs/logfs/
Dsuper.c546 err = logfs_read_sb(sb, sb->s_flags & MS_RDONLY); in logfs_get_sb_device()
/linux-4.4.14/arch/x86/kernel/
Dsetup.c943 root_mountflags &= ~MS_RDONLY; in setup_arch()
/linux-4.4.14/fs/cifs/
Dcifsglob.h524 #define CIFS_MS_MASK (MS_RDONLY | MS_MANDLOCK | MS_NOEXEC | MS_NOSUID | \
/linux-4.4.14/fs/quota/
Dquota.c694 if (sb->s_flags & MS_RDONLY) in do_quotactl()
/linux-4.4.14/include/linux/
Dfs.h1765 #define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY)
1771 #define IS_NOATIME(inode) __IS_FLG(inode, MS_RDONLY|MS_NOATIME)