Home
last modified time | relevance | path

Searched refs:bdev_read_only (Results 1 – 24 of 24) sorted by relevance

/linux-6.6.21/block/
Dblk-lib.c44 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()
Dfops.c653 if (bdev_read_only(bdev)) in blkdev_write_iter()
820 if (bdev_read_only(I_BDEV(bd_inode))) in blkdev_mmap()
Dblk-zoned.c263 if (bdev_read_only(bdev)) in blkdev_zone_mgmt()
Dioctl.c526 return put_int(argp, bdev_read_only(bdev) != 0); in blkdev_common_ioctl()
Dbdev.c863 if (!IS_ERR(bdev) && (mode & BLK_OPEN_WRITE) && bdev_read_only(bdev)) { in blkdev_get_by_path()
Dblk-core.c501 if (op_is_write(bio_op(bio)) && bdev_read_only(bio->bi_bdev)) { in bio_check_ro()
/linux-6.6.21/security/loadpin/
Dloadpin.c106 writable = !bdev_read_only(mnt_sb->s_bdev); in sb_is_writable()
/linux-6.6.21/fs/xfs/
Dxfs_buf.h374 #define xfs_readonly_buftarg(buftarg) bdev_read_only((buftarg)->bt_bdev)
/linux-6.6.21/fs/gfs2/
Drecovery.c485 ro = bdev_read_only(sdp->sd_vfs->s_bdev); in gfs2_recover_func()
/linux-6.6.21/include/linux/
Dblkdev.h748 static inline int bdev_read_only(struct block_device *bdev) in bdev_read_only() function
1449 int bdev_read_only(struct block_device *bdev);
/linux-6.6.21/block/partitions/
Dcore.c188 return sprintf(buf, "%d\n", bdev_read_only(dev_to_bdev(dev))); in part_ro_show()
/linux-6.6.21/fs/ext4/
Dorphan.c398 if (bdev_read_only(sb->s_bdev)) { in ext4_orphan_cleanup()
Dsuper.c718 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()
/linux-6.6.21/fs/
Dsuper.c1099 bdev_read_only(sb->s_bdev)) in reconfigure_super()
1496 if ((mode & BLK_OPEN_WRITE) && bdev_read_only(bdev)) { in setup_bdev_super()
/linux-6.6.21/fs/nilfs2/
Dthe_nilfs.c236 int really_read_only = bdev_read_only(nilfs->ns_bdev); in load_nilfs()
/linux-6.6.21/fs/reiserfs/
Djournal.c2173 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()
Dsuper.c2045 if (bdev_read_only(s->s_bdev) && !sb_rdonly(s)) { in reiserfs_fill_super()
/linux-6.6.21/Documentation/filesystems/
Dporting.rst271 Use bdev_read_only(bdev) instead of is_read_only(kdev). The latter
297 is_read_only() is gone; use bdev_read_only() instead.
/linux-6.6.21/drivers/md/
Ddm-cache-metadata.c454 if (bdev_read_only(cmd->bdev)) in __check_incompat_features()
Ddm-thin-metadata.c675 if (bdev_read_only(pmd->bdev)) in __check_incompat_features()
Dmd.c2401 return bdev_read_only(rdev->bdev) || in rdev_read_only()
2402 (rdev->meta_bdev && bdev_read_only(rdev->meta_bdev)); in rdev_read_only()
/linux-6.6.21/fs/f2fs/
Df2fs.h4487 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()
/linux-6.6.21/fs/ocfs2/
Dsuper.c1030 if (bdev_read_only(sb->s_bdev)) { in ocfs2_fill_super()
/linux-6.6.21/fs/btrfs/
Dvolumes.c651 if (bdev_read_only(bdev)) in btrfs_open_one_device()