Searched refs:bdev_read_only (Results 1 – 24 of 24) sorted by relevance
44 if (bdev_read_only(bdev)) in __blkdev_issue_discard()125 if (bdev_read_only(bdev)) in __blkdev_issue_write_zeroes()176 if (bdev_read_only(bdev)) in __blkdev_issue_zero_pages()321 if (bdev_read_only(bdev)) in blkdev_issue_secure_erase()
653 if (bdev_read_only(bdev)) in blkdev_write_iter()820 if (bdev_read_only(I_BDEV(bd_inode))) in blkdev_mmap()
263 if (bdev_read_only(bdev)) in blkdev_zone_mgmt()
526 return put_int(argp, bdev_read_only(bdev) != 0); in blkdev_common_ioctl()
863 if (!IS_ERR(bdev) && (mode & BLK_OPEN_WRITE) && bdev_read_only(bdev)) { in blkdev_get_by_path()
501 if (op_is_write(bio_op(bio)) && bdev_read_only(bio->bi_bdev)) { in bio_check_ro()
106 writable = !bdev_read_only(mnt_sb->s_bdev); in sb_is_writable()
374 #define xfs_readonly_buftarg(buftarg) bdev_read_only((buftarg)->bt_bdev)
485 ro = bdev_read_only(sdp->sd_vfs->s_bdev); in gfs2_recover_func()
748 static inline int bdev_read_only(struct block_device *bdev) in bdev_read_only() function1449 int bdev_read_only(struct block_device *bdev);
188 return sprintf(buf, "%d\n", bdev_read_only(dev_to_bdev(dev))); in part_ro_show()
398 if (bdev_read_only(sb->s_bdev)) { in ext4_orphan_cleanup()
718 if (!bdev_read_only(sb->s_bdev)) { in ext4_handle_error()1080 if (!bdev_read_only(sb->s_bdev)) { in __ext4_grp_locked_error()6002 journal_dev_ro = bdev_read_only(journal->j_dev); in ext4_load_journal()6003 really_read_only = bdev_read_only(sb->s_bdev) | journal_dev_ro; in ext4_load_journal()
1099 bdev_read_only(sb->s_bdev)) in reconfigure_super()1496 if ((mode & BLK_OPEN_WRITE) && bdev_read_only(bdev)) { in setup_bdev_super()
236 int really_read_only = bdev_read_only(nilfs->ns_bdev); in load_nilfs()
2173 if (bdev_read_only(sb->s_bdev)) { in journal_read_transaction()2556 if (!bdev_read_only(sb->s_bdev) && in journal_read()2619 if (!bdev_read_only(super->s_bdev)) in journal_init_dev()
2045 if (bdev_read_only(s->s_bdev) && !sb_rdonly(s)) { in reiserfs_fill_super()
271 Use bdev_read_only(bdev) instead of is_read_only(kdev). The latter297 is_read_only() is gone; use bdev_read_only() instead.
454 if (bdev_read_only(cmd->bdev)) in __check_incompat_features()
675 if (bdev_read_only(pmd->bdev)) in __check_incompat_features()
2401 return bdev_read_only(rdev->bdev) || in rdev_read_only()2402 (rdev->meta_bdev && bdev_read_only(rdev->meta_bdev)); in rdev_read_only()
4487 return bdev_read_only(sbi->sb->s_bdev); in f2fs_hw_is_readonly()4490 if (bdev_read_only(FDEV(i).bdev)) in f2fs_hw_is_readonly()
1030 if (bdev_read_only(sb->s_bdev)) { in ocfs2_fill_super()
651 if (bdev_read_only(bdev)) in btrfs_open_one_device()