/linux-4.1.27/fs/hfsplus/ |
D | super.c | 263 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/ |
D | super.c | 296 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/ |
D | super.c | 73 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()
|
D | mdb.c | 207 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/ |
D | xfs_quotaops.c | 128 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()
|
D | xfs_super.c | 195 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/ |
D | super.c | 126 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 …]
|
D | the_nilfs.c | 223 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()
|
D | mdt.c | 436 if (inode && (inode->i_sb->s_flags & MS_RDONLY)) { in nilfs_mdt_write_page()
|
D | inode.c | 181 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/ |
D | super.c | 78 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()
|
D | jfs_mount.c | 365 !(sb->s_flags & MS_RDONLY)) { in chkSuper()
|
/linux-4.1.27/fs/btrfs/ |
D | super.c | 114 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 …]
|
D | root-tree.c | 233 if (tree_root->fs_info->sb->s_flags & MS_RDONLY) in btrfs_find_orphan_roots()
|
D | disk-io.c | 2358 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()
|
D | sysfs.c | 374 if (fs_info->sb->s_flags & MS_RDONLY) in btrfs_label_store()
|
D | dev-replace.c | 696 if (fs_info->sb->s_flags & MS_RDONLY) in __btrfs_dev_replace_cancel()
|
D | extent_io.c | 2038 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()
|
D | volumes.c | 2109 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()
|
D | ctree.h | 3667 return (root->fs_info->sb->s_flags & MS_RDONLY || in btrfs_need_cleaner_sleep()
|
D | ioctl.c | 4303 if (root->fs_info->sb->s_flags & MS_RDONLY) { in btrfs_ioctl_dev_replace()
|
D | inode.c | 5589 if (!(inode->i_sb->s_flags & MS_RDONLY)) in btrfs_lookup_dentry()
|
/linux-4.1.27/init/ |
D | do_mounts.c | 40 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()
|
D | do_mounts_initrd.c | 61 mount_block_root("/dev/root.old", root_mountflags & ~MS_RDONLY); in handle_initrd()
|
/linux-4.1.27/fs/ntfs/ |
D | super.c | 476 *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/ |
D | super.c | 707 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()
|
D | sync.c | 60 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()
|
D | proc_namespace.c | 176 seq_puts(m, sb->s_flags & MS_RDONLY ? " ro" : " rw"); in show_mountinfo()
|
D | namespace.c | 278 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()
|
D | namei.c | 440 if ((sb->s_flags & MS_RDONLY) && in sb_permission()
|
/linux-4.1.27/fs/hpfs/ |
D | super.c | 24 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()
|
D | dir.c | 261 if (de->has_acl || de->has_xtd_perm) if (!(dir->i_sb->s_flags & MS_RDONLY)) { in hpfs_lookup()
|
D | map.c | 264 …+ 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/ |
D | super.c | 73 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 …]
|
D | fsync.c | 51 if (inode->i_sb->s_flags & MS_RDONLY) { in ext3_sync_file()
|
/linux-4.1.27/include/uapi/linux/ |
D | fs.h | 68 #define MS_RDONLY 1 /* Mount read-only */ macro 104 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION|\
|
D | bfs_fs.h | 78 …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/ |
D | super.c | 79 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()
|
D | bitmap.c | 22 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()
|
D | amigaffs.c | 452 if (!(sb->s_flags & MS_RDONLY)) in affs_error() 454 sb->s_flags |= MS_RDONLY; in affs_error()
|
/linux-4.1.27/fs/ext2/ |
D | super.c | 55 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/ |
D | super.c | 118 *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/ |
D | vxfs_super.c | 128 *flags |= MS_RDONLY; in vxfs_remount() 157 sbp->s_flags |= MS_RDONLY; in vxfs_fill_super()
|
/linux-4.1.27/fs/ext4/ |
D | super.c | 380 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 …]
|
D | fsync.c | 100 if (inode->i_sb->s_flags & MS_RDONLY) { in ext4_sync_file()
|
D | ext4_jbd2.c | 46 if (sb->s_flags & MS_RDONLY) in ext4_journal_check_start()
|
D | mmp.c | 182 if (sb->s_flags & MS_RDONLY) { in kmmpd()
|
D | file.c | 262 !(sb->s_flags & MS_RDONLY))) { in ext4_file_open()
|
D | ialloc.c | 1266 if (sb->s_flags & MS_RDONLY) { in ext4_init_inode_table()
|
/linux-4.1.27/fs/reiserfs/ |
D | super.c | 107 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 …]
|
D | prints.c | 391 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()
|
D | xattr.c | 1029 if (d_really_is_negative(privroot) && !(mount_flags & MS_RDONLY)) { in reiserfs_xattr_init()
|
D | journal.c | 1921 if (!error && !(sb->s_flags & MS_RDONLY)) { in do_journal_release() 4397 sb->s_flags |= MS_RDONLY; in reiserfs_abort_journal()
|
D | inode.c | 1780 if (inode->i_sb->s_flags & MS_RDONLY) in reiserfs_write_inode()
|
/linux-4.1.27/fs/ocfs2/ |
D | super.c | 679 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/ |
D | inode.c | 45 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/ |
D | misc.c | 35 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()
|
D | inode.c | 576 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()
|
D | fatent.c | 312 if (sb->s_flags & MS_RDONLY || sbi->fat_bits != 32) in mark_fsinfo_dirty()
|
/linux-4.1.27/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 132 mnt_flags |= MS_RDONLY; in read_mnt_flags() 320 if (!test_unpriv_remount_simple(MS_RDONLY)) { in main()
|
/linux-4.1.27/fs/udf/ |
D | super.c | 655 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/ |
D | fs.c | 399 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()
|
D | os-linux.h | 62 #define jffs2_is_readonly(c) (OFNI_BS_2SFFJ(c)->s_flags & MS_RDONLY)
|
D | super.c | 348 if (!(sb->s_flags & MS_RDONLY)) in jffs2_kill_sb()
|
D | wbuf.c | 1165 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/ |
D | ops_fstype.c | 1033 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()
|
D | super.c | 890 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()
|
D | recovery.c | 525 if (sdp->sd_vfs->s_flags & MS_RDONLY) { in gfs2_recover_func()
|
D | glops.c | 542 if (!remote || (sdp->sd_vfs->s_flags & MS_RDONLY)) in iopen_go_callback()
|
D | sys.c | 628 sprintf(ro, "RDONLY=%d", (sb->s_flags & MS_RDONLY) ? 1 : 0); in gfs2_sys_fs_add()
|
D | quota.c | 455 if (sdp->sd_vfs->s_flags & MS_RDONLY) in qd_fish()
|
/linux-4.1.27/fs/qnx4/ |
D | inode.c | 50 *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/ |
D | inode.c | 65 *flags |= MS_RDONLY; in sysv_remount() 73 if (!(sb->s_flags & MS_RDONLY)) { in sysv_put_super()
|
D | balloc.c | 234 if (!(sb->s_flags & MS_RDONLY)) { in sysv_count_free_blocks()
|
D | ialloc.c | 223 if (!(sb->s_flags & MS_RDONLY)) { in sysv_count_free_inodes()
|
D | super.c | 219 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/ |
D | super.c | 537 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/ |
D | super.c | 199 sb->s_flags |= MS_RDONLY; in squashfs_fill_super() 377 *flags |= MS_RDONLY; in squashfs_remount()
|
/linux-4.1.27/fs/befs/ |
D | linuxvfs.c | 796 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()
|
D | ChangeLog | 368 By setting the MS_RDONLY flag in befs_read_super().
|
/linux-4.1.27/arch/sh/kernel/ |
D | setup.c | 265 root_mountflags &= ~MS_RDONLY; in setup_arch()
|
/linux-4.1.27/fs/romfs/ |
D | super.c | 437 *flags |= MS_RDONLY; in romfs_remount() 488 sb->s_flags |= MS_RDONLY | MS_NOATIME; in romfs_fill_super()
|
/linux-4.1.27/fs/cramfs/ |
D | inode.c | 252 *flags |= MS_RDONLY; in cramfs_remount() 264 sb->s_flags |= MS_RDONLY; in cramfs_fill_super()
|
/linux-4.1.27/arch/sparc/kernel/ |
D | setup_32.c | 358 root_mountflags &= ~MS_RDONLY; in setup_arch()
|
D | setup_64.c | 612 root_mountflags &= ~MS_RDONLY; in setup_arch()
|
/linux-4.1.27/arch/arm/kernel/ |
D | atags_parse.c | 58 root_mountflags &= ~MS_RDONLY; in parse_tag_core()
|
/linux-4.1.27/fs/cachefiles/ |
D | bind.c | 136 if (root->d_sb->s_flags & MS_RDONLY) in cachefiles_daemon_add_cache()
|
/linux-4.1.27/fs/ecryptfs/ |
D | main.c | 572 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/ |
D | setup.c | 241 root_mountflags &= ~MS_RDONLY; in setup_arch()
|
/linux-4.1.27/fs/qnx6/ |
D | inode.c | 59 *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/ |
D | llite_lib.c | 225 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/ |
D | super.c | 690 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()
|
D | f2fs.h | 1396 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/ |
D | super.c | 1149 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()
|
D | io.c | 87 c->vfs_sb->s_flags |= MS_RDONLY; in ubifs_ro_mode()
|
/linux-4.1.27/arch/arc/kernel/ |
D | setup.c | 372 root_mountflags &= ~MS_RDONLY; in setup_arch()
|
/linux-4.1.27/arch/avr32/kernel/ |
D | setup.c | 309 root_mountflags &= ~MS_RDONLY; in parse_tag_core()
|
/linux-4.1.27/fs/isofs/ |
D | inode.c | 117 if (!(*flags & MS_RDONLY)) in isofs_remount() 1507 if (!(flags & MS_RDONLY)) in isofs_mount()
|
/linux-4.1.27/fs/nfs/ |
D | internal.h | 11 #define NFS_MS_MASK (MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_SYNCHRONOUS)
|
D | super.c | 817 seq_puts(m, root->d_sb->s_flags & MS_RDONLY ? "ro" : "rw"); in nfs_show_stats()
|
/linux-4.1.27/arch/x86/kernel/ |
D | setup.c | 961 root_mountflags &= ~MS_RDONLY; in setup_arch()
|
/linux-4.1.27/fs/logfs/ |
D | super.c | 546 err = logfs_read_sb(sb, sb->s_flags & MS_RDONLY); in logfs_get_sb_device()
|
/linux-4.1.27/fs/cifs/ |
D | cifsglob.h | 512 #define CIFS_MS_MASK (MS_RDONLY | MS_MANDLOCK | MS_NOEXEC | MS_NOSUID | \
|
/linux-4.1.27/fs/quota/ |
D | quota.c | 694 if (sb->s_flags & MS_RDONLY) in do_quotactl()
|
/linux-4.1.27/include/linux/ |
D | fs.h | 1747 #define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY) 1753 #define IS_NOATIME(inode) __IS_FLG(inode, MS_RDONLY|MS_NOATIME)
|