Searched refs:bdev_logical_block_size (Results 1 – 25 of 52) sorted by relevance
123
56 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_discard()225 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_zeroout()261 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in blkdev_issue_zeroout()306 sector_t bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in blkdev_issue_secure_erase()
127 unsigned int bsize = bdev_logical_block_size(bdev); in set_init_blocksize()145 if (size < bdev_logical_block_size(bdev)) in set_blocksize()174 int minsize = bdev_logical_block_size(sb->s_bdev); in sb_min_blocksize()1090 stat->dio_offset_align = bdev_logical_block_size(bdev); in bdev_statx_dioalign()
42 if (p.start & (bdev_logical_block_size(bdev) - 1)) in blkpg_do_ioctl()503 return put_int(argp, bdev_logical_block_size(bdev)); in blkdev_common_ioctl()666 return put_int(argp, bdev_logical_block_size(bdev)); in compat_blkdev_ioctl()
48 return pos & (bdev_logical_block_size(bdev) - 1) || in blkdev_dio_unaligned()638 if ((start | len) & (bdev_logical_block_size(bdev) - 1)) in blkdev_fallocate()
172 (bdev_logical_block_size(dm_snap_cow(store->snap)->bdev) >> 9) || in dm_exception_store_set_chunk_size()174 (bdev_logical_block_size(dm_snap_origin(store->snap)->bdev) >> 9)) { in dm_exception_store_set_chunk_size()
549 lc->sectorsize = bdev_logical_block_size(lc->dev->bdev); in log_writes_ctr()875 limits->logical_block_size = bdev_logical_block_size(lc->dev->bdev); in log_writes_io_hints()
301 ec->u_bs = to_sector(bdev_logical_block_size(ec->dev->bdev)); in ebs_ctr()
1228 num < bdev_logical_block_size(v->data_dev->bdev) || in verity_ctr()1238 num < bdev_logical_block_size(v->hash_dev->bdev) || in verity_ctr()
444 bdev_logical_block_size(lc->header_location. in create_log_context()
316 bdev_logical_block_size(dm_snap_cow(ps->store->snap)-> in read_header()
17 bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()44 bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()48 id->nows = to0based(bdev_io_opt(bdev) / bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()99 ns->blksize_shift = blksize_bits(bdev_logical_block_size(ns->bdev)); in nvmet_bdev_ns_enable()
68 ns->blksize_shift = blksize_bits(bdev_logical_block_size(ns->bdev)); in nvmet_bdev_zns_enable()
126 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device()236 u32 block_size = bdev_logical_block_size(ib_dev->ibd_bd); in iblock_get_blocks()841 return ret / bdev_logical_block_size(bd); in iblock_get_alignment_offset_lbas()849 bdev_physical_block_size(bd) / bdev_logical_block_size(bd); in iblock_get_lbppbe()
656 int hw_blocksize = bdev_logical_block_size(sb->s_bdev); in init_nilfs()719 bdev_logical_block_size(nilfs->ns_bdev); in nilfs_discard_segments()
309 blocksize = bdev_logical_block_size(bdev); in ibm_partition()
235 blksize = bdev_logical_block_size(I_BDEV(inode)); in fsg_lun_open()
1970 btp->bt_logical_sectorsize = bdev_logical_block_size(btp->bt_bdev); in xfs_setsize_buftarg()1971 btp->bt_logical_sectormask = bdev_logical_block_size(btp->bt_bdev) - 1; in xfs_setsize_buftarg()1986 return xfs_setsize_buftarg(btp, bdev_logical_block_size(bdev)); in xfs_setsize_buftarg_early()
386 blksize_mask = bdev_logical_block_size(bdev) - 1; in erofs_file_read_iter()
1185 static inline unsigned int bdev_logical_block_size(struct block_device *bdev) in bdev_logical_block_size() function1339 bdev_logical_block_size(bdev) - 1); in bdev_iter_is_aligned()
309 return max_t(unsigned short, bdev_logical_block_size(sb->s_bdev), in hfsplus_min_io_size()
652 if (bdev_logical_block_size(s->s_bdev) > 2048) { in isofs_fill_super()655 bdev_logical_block_size(s->s_bdev)); in isofs_fill_super()
398 i = bdev_logical_block_size(sb->s_bdev); in affs_fill_super()
243 unsigned int blkbits = blksize_bits(bdev_logical_block_size(iomap->bdev)); in iomap_dio_bio_iter()
544 rsp->logical_block_size = cpu_to_le16(bdev_logical_block_size(bdev)); in rnbd_srv_fill_msg_open_rsp()
511 if (sdp->sd_sb.sb_bsize < bdev_logical_block_size(sb->s_bdev)) { in init_sb()515 sdp->sd_sb.sb_bsize, bdev_logical_block_size(sb->s_bdev)); in init_sb()