/linux/block/ |
H A D | blk-settings.c | 41 lim->discard_granularity = SECTOR_SIZE; in blk_set_stacking_limits() 331 if (lim->discard_granularity < lim->physical_block_size) in blk_validate_limits() 332 lim->discard_granularity = lim->physical_block_size; in blk_validate_limits() 484 granularity = lim->discard_granularity >> SECTOR_SHIFT; in queue_limit_discard_alignment() 757 if (b->discard_granularity) { in blk_stack_limits() 764 t->discard_granularity = max(t->discard_granularity, in blk_stack_limits() 765 b->discard_granularity); in blk_stack_limits() 767 t->discard_granularity; in blk_stack_limits()
|
H A D | blk-lib.c | 15 unsigned int discard_granularity = bdev_discard_granularity(bdev); in bio_discard_limit() local 22 round_up(sector, discard_granularity >> SECTOR_SHIFT); in bio_discard_limit() 35 return round_down(UINT_MAX, discard_granularity) >> SECTOR_SHIFT; in bio_discard_limit()
|
H A D | blk-sysfs.c | 112 QUEUE_SYSFS_LIMIT_SHOW(discard_granularity) in QUEUE_SYSFS_LIMIT_SHOW() 168 if (max_discard_bytes & (disk->queue->limits.discard_granularity - 1))
|
H A D | blk-merge.c | 147 granularity = max(lim->discard_granularity >> 9, 1U); in bio_split_discard()
|
/linux/drivers/block/ |
H A D | virtio_blk.c | 1246 u32 discard_granularity = 0; in virtblk_read_limits() local 1316 discard_sector_alignment, &discard_granularity); in virtblk_read_limits() 1358 discard_granularity = min_not_zero(discard_granularity, v); in virtblk_read_limits() 1402 if (discard_granularity) in virtblk_read_limits() 1403 lim->discard_granularity = in virtblk_read_limits() 1404 discard_granularity << SECTOR_SHIFT; in virtblk_read_limits() 1406 lim->discard_granularity = lim->logical_block_size; in virtblk_read_limits()
|
H A D | xen-blkfront.c | 221 unsigned int discard_granularity; member 955 if (info->discard_granularity) in blkif_set_queue_limits() 956 lim->discard_granularity = info->discard_granularity; in blkif_set_queue_limits() 2152 info->discard_granularity = xenbus_read_unsigned(info->xbdev->otherend, in blkfront_setup_discard()
|
H A D | brd.c | 372 .discard_granularity = PAGE_SIZE, in brd_alloc()
|
H A D | loop.c | 311 lim.discard_granularity = 0; in loop_clear_limits() 1010 lim.discard_granularity = granularity; in loop_reconfigure_limits() 1012 lim.discard_granularity = 0; in loop_reconfigure_limits()
|
H A D | ublk_drv.c | 558 if (!p->discard_granularity) in ublk_validate_params() 2275 lim.discard_granularity = pd->discard_granularity; in ublk_ctrl_start_dev()
|
/linux/drivers/block/rnbd/ |
H A D | rnbd-proto.h | 150 __le32 discard_granularity; member
|
H A D | rnbd-clt.c | 1371 .discard_granularity = le32_to_cpu(rsp->discard_granularity), in rnbd_client_setup_device() 1619 le32_to_cpu(rsp->discard_granularity), in rnbd_clt_map_device()
|
H A D | rnbd-srv.c | 557 rsp->discard_granularity = cpu_to_le32(bdev_discard_granularity(bdev)); in rnbd_srv_fill_msg_open_rsp()
|
/linux/drivers/mmc/core/ |
H A D | queue.c | 194 lim->discard_granularity = SECTOR_SIZE; in mmc_queue_setup_discard() 196 lim->discard_granularity = card->pref_erase << 9; in mmc_queue_setup_discard()
|
/linux/include/uapi/linux/ |
H A D | ublk_cmd.h | 378 __u32 discard_granularity; member
|
/linux/drivers/block/drbd/ |
H A D | drbd_worker.c | 596 int discard_granularity = 0; in make_resync_request() local 618 discard_granularity = rcu_dereference(device->ldev->disk_conf)->rs_discard_granularity; in make_resync_request() 686 if (discard_granularity && size == discard_granularity) in make_resync_request() 736 size == discard_granularity ? P_RS_THIN_REQ : P_RS_DATA_REQUEST, in make_resync_request()
|
H A D | drbd_nl.c | 1313 lim.discard_granularity = 512; in drbd_reconsider_queue_parameters() 1317 lim.discard_granularity = 0; in drbd_reconsider_queue_parameters() 1334 if ((lim.discard_granularity >> SECTOR_SHIFT) > in drbd_reconsider_queue_parameters() 1336 lim.discard_granularity = 0; in drbd_reconsider_queue_parameters() 1451 unsigned int discard_granularity = bdev_discard_granularity(bdev); in sanitize_disk_conf() local 1454 if (discard_granularity > disk_conf->rs_discard_granularity) in sanitize_disk_conf() 1455 disk_conf->rs_discard_granularity = discard_granularity; in sanitize_disk_conf() 1458 discard_granularity; in sanitize_disk_conf()
|
/linux/fs/ntfs3/ |
H A D | super.c | 1196 sbi->discard_granularity = bdev_discard_granularity(bdev); in ntfs_fill_super() 1198 ~(u64)(sbi->discard_granularity - 1); in ntfs_fill_super() 1669 start = (lbo + sbi->discard_granularity - 1) & in ntfs_discard()
|
H A D | ntfs_fs.h | 213 u32 discard_granularity; member
|
/linux/include/linux/ |
H A D | blkdev.h | 382 unsigned int discard_granularity; member 1303 return bdev_limits(bdev)->discard_granularity; in bdev_discard_granularity()
|
/linux/drivers/md/ |
H A D | dm-cache-target.c | 3393 limits->discard_granularity = cache->discard_block_size << SECTOR_SHIFT; in set_discard_limits() 3402 limits->discard_granularity = origin_limits->discard_granularity; in set_discard_limits()
|
H A D | dm-zoned-target.c | 1003 limits->discard_granularity = DMZ_BLOCK_SIZE; in dmz_io_hints()
|
H A D | dm-thin.c | 4107 limits->discard_granularity = 0; in pool_io_hints() 4493 limits->discard_granularity = pool->sectors_per_block << SECTOR_SHIFT; in thin_io_hints()
|
/linux/fs/ext4/ |
H A D | mballoc.c | 6909 unsigned int discard_granularity = bdev_discard_granularity(sb->s_bdev); in ext4_trim_fs() local 6929 if (range->minlen < discard_granularity) { in ext4_trim_fs() 6931 discard_granularity >> sb->s_blocksize_bits); in ext4_trim_fs()
|
/linux/drivers/md/dm-vdo/ |
H A D | dm-vdo-target.c | 955 limits->discard_granularity = VDO_BLOCK_SIZE; in vdo_io_hints()
|
/linux/drivers/s390/block/ |
H A D | dasd.c | 339 lim.discard_granularity = block->bp_block; in dasd_state_basic_to_ready()
|