/linux/block/ |
H A D | blk-lib.c | 108 sector_t bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in bio_write_zeroes_limit() 313 if ((sector | nr_sects) & ((bdev_logical_block_size(bdev) >> 9) - 1)) in blkdev_issue_zeroout() 332 sector_t bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in blkdev_issue_secure_erase()
|
H A D | ioctl.c | 42 if (!IS_ALIGNED(p.start | p.length, bdev_logical_block_size(bdev))) in blkpg_do_ioctl() 106 unsigned int bs_mask = bdev_logical_block_size(bdev) - 1; in blk_validate_byte_range() 589 return put_int(argp, bdev_logical_block_size(bdev)); in blkdev_common_ioctl() 734 return put_int(argp, bdev_logical_block_size(bdev)); in compat_blkdev_ioctl()
|
H A D | bdev.c | 142 unsigned int bsize = bdev_logical_block_size(bdev); in set_init_blocksize() 163 if (size < bdev_logical_block_size(bdev)) in set_blocksize() 195 int minsize = bdev_logical_block_size(sb->s_bdev); in sb_min_blocksize() 1295 stat->dio_offset_align = bdev_logical_block_size(bdev); in bdev_statx()
|
H A D | fops.c | 44 return pos & (bdev_logical_block_size(bdev) - 1) || in blkdev_dio_invalid() 402 iomap->offset = ALIGN_DOWN(offset, bdev_logical_block_size(bdev)); in blkdev_iomap_begin() 805 if ((start | len) & (bdev_logical_block_size(bdev) - 1)) in blkdev_fallocate()
|
/linux/drivers/nvme/target/ |
H A D | io-cmd-bdev.c | 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() 103 ns->blksize_shift = blksize_bits(bdev_logical_block_size(ns->bdev)); in nvmet_bdev_ns_enable()
|
H A D | zns.c | 64 ns->blksize_shift = blksize_bits(bdev_logical_block_size(ns->bdev)); in nvmet_bdev_zns_enable()
|
/linux/drivers/md/ |
H A D | dm-exception-store.c | 173 (bdev_logical_block_size(dm_snap_cow(store->snap)->bdev) >> 9) || in dm_exception_store_set_chunk_size() 175 (bdev_logical_block_size(dm_snap_origin(store->snap)->bdev) >> 9)) { in dm_exception_store_set_chunk_size()
|
H A D | dm-ebs-target.c | 302 ec->u_bs = to_sector(bdev_logical_block_size(ec->dev->bdev)); in ebs_ctr()
|
H A D | dm-clone-target.c | 1652 if (region_size % (bdev_logical_block_size(clone->source_dev->bdev) >> 9) || in parse_region_size() 1653 region_size % (bdev_logical_block_size(clone->dest_dev->bdev) >> 9)) { in parse_region_size()
|
H A D | dm-verity-target.c | 1457 num < bdev_logical_block_size(v->data_dev->bdev) || in verity_ctr() 1467 num < bdev_logical_block_size(v->hash_dev->bdev) || in verity_ctr()
|
H A D | dm-log.c | 450 bdev_logical_block_size(lc->header_location.bdev)); in create_log_context()
|
H A D | dm-snap-persistent.c | 320 bdev_logical_block_size(dm_snap_cow(ps->store->snap)-> in read_header()
|
/linux/drivers/target/ |
H A D | target_core_iblock.c | 131 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device() 246 u32 block_size = bdev_logical_block_size(ib_dev->ibd_bd); in iblock_get_blocks() 1110 return ret / bdev_logical_block_size(bd); in iblock_get_alignment_offset_lbas() 1118 bdev_physical_block_size(bd) / bdev_logical_block_size(bd); in iblock_get_lbppbe()
|
/linux/fs/bcachefs/ |
H A D | super-io.c | 162 new_bytes = max_t(size_t, new_bytes, bdev_logical_block_size(sb->bdev)); in bch2_sb_realloc() 821 bdev_logical_block_size(sb->bdev) && in __bch2_read_super() 830 bdev_logical_block_size(sb->bdev)); in __bch2_read_super() 924 bdev_logical_block_size(ca->disk_sb.bdev))); in write_one_super()
|
/linux/fs/nilfs2/ |
H A D | the_nilfs.c | 728 int hw_blocksize = bdev_logical_block_size(sb->s_bdev); in init_nilfs() 788 bdev_logical_block_size(nilfs->ns_bdev); in nilfs_discard_segments()
|
/linux/block/partitions/ |
H A D | ibm.c | 344 blocksize = bdev_logical_block_size(bdev); in ibm_partition()
|
/linux/fs/erofs/ |
H A D | inode.c | 340 bdev_logical_block_size(inode->i_sb->s_bdev); in erofs_getattr()
|
H A D | data.c | 419 blksize_mask = bdev_logical_block_size(bdev) - 1; in erofs_file_read_iter()
|
/linux/drivers/usb/gadget/function/ |
H A D | storage_common.c | 236 blksize = bdev_logical_block_size(I_BDEV(inode)); in fsg_lun_open()
|
/linux/include/linux/ |
H A D | blkdev.h | 1230 static inline unsigned int bdev_logical_block_size(struct block_device *bdev) in bdev_logical_block_size() function 1417 bdev_logical_block_size(bdev) - 1); in bdev_iter_is_aligned()
|
/linux/fs/isofs/ |
H A D | inode.c | 606 if (bdev_logical_block_size(s->s_bdev) > 2048) { in isofs_fill_super() 609 bdev_logical_block_size(s->s_bdev)); in isofs_fill_super()
|
/linux/fs/hfsplus/ |
H A D | hfsplus_fs.h | 310 return max_t(unsigned short, bdev_logical_block_size(sb->s_bdev), in hfsplus_min_io_size()
|
/linux/fs/affs/ |
H A D | super.c | 397 i = bdev_logical_block_size(sb->s_bdev); in affs_fill_super()
|
/linux/fs/iomap/ |
H A D | direct-io.c | 306 if ((pos | length) & (bdev_logical_block_size(iomap->bdev) - 1) || in iomap_dio_bio_iter()
|
/linux/fs/gfs2/ |
H A D | ops_fstype.c | 489 if (sdp->sd_sb.sb_bsize < bdev_logical_block_size(sb->s_bdev)) { in init_sb() 493 sdp->sd_sb.sb_bsize, bdev_logical_block_size(sb->s_bdev)); in init_sb()
|