/Linux-v5.10/block/ |
D | blk-settings.c | 52 lim->max_discard_sectors = 0; in blk_set_default_limits() 192 unsigned int max_discard_sectors) in blk_queue_max_discard_sectors() argument 194 q->limits.max_hw_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors() 195 q->limits.max_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors() 611 t->max_discard_sectors = min_not_zero(t->max_discard_sectors, in blk_stack_limits() 612 b->max_discard_sectors); in blk_stack_limits()
|
D | blk-merge.c | 67 unsigned int max_discard_sectors, granularity; in blk_bio_discard_split() local 77 max_discard_sectors = min(q->limits.max_discard_sectors, in blk_bio_discard_split() 79 max_discard_sectors -= max_discard_sectors % granularity; in blk_bio_discard_split() 81 if (unlikely(!max_discard_sectors)) { in blk_bio_discard_split() 86 if (bio_sectors(bio) <= max_discard_sectors) in blk_bio_discard_split() 89 split_sectors = max_discard_sectors; in blk_bio_discard_split()
|
D | blk-sysfs.c | 179 (unsigned long long)q->limits.max_discard_sectors << 9); in queue_discard_max_show() 201 q->limits.max_discard_sectors = max_discard; in queue_discard_max_store()
|
/Linux-v5.10/include/uapi/linux/ |
D | virtio_blk.h | 97 __virtio32 max_discard_sectors; member
|
/Linux-v5.10/drivers/block/rnbd/ |
D | rnbd-clt.h | 117 u32 max_discard_sectors; member
|
D | rnbd-proto.h | 134 __le32 max_discard_sectors; member
|
D | rnbd-clt.c | 85 dev->max_discard_sectors = le32_to_cpu(rsp->max_discard_sectors); in rnbd_clt_set_dev_attr() 1289 blk_queue_max_discard_sectors(dev->queue, dev->max_discard_sectors); in setup_request_queue() 1292 if (dev->max_discard_sectors) in setup_request_queue() 1519 dev->max_write_same_sectors, dev->max_discard_sectors, in rnbd_clt_map_device()
|
D | rnbd-srv.c | 553 rsp->max_discard_sectors = in rnbd_srv_fill_msg_open_rsp()
|
/Linux-v5.10/drivers/s390/block/ |
D | dasd_fba.c | 780 unsigned int max_bytes, max_discard_sectors; in dasd_fba_setup_blk_queue() local 799 max_discard_sectors = max_bytes / logical_block_size; in dasd_fba_setup_blk_queue() 801 blk_queue_max_discard_sectors(q, max_discard_sectors); in dasd_fba_setup_blk_queue() 802 blk_queue_max_write_zeroes_sectors(q, max_discard_sectors); in dasd_fba_setup_blk_queue()
|
/Linux-v5.10/drivers/block/ |
D | loop.c | 882 u32 granularity, max_discard_sectors; in loop_config_discard() local 896 max_discard_sectors = backingq->limits.max_write_zeroes_sectors; in loop_config_discard() 907 max_discard_sectors = 0; in loop_config_discard() 911 max_discard_sectors = UINT_MAX >> 9; in loop_config_discard() 915 if (max_discard_sectors) { in loop_config_discard() 917 blk_queue_max_discard_sectors(q, max_discard_sectors); in loop_config_discard() 918 blk_queue_max_write_zeroes_sectors(q, max_discard_sectors); in loop_config_discard()
|
D | virtio_blk.c | 867 max_discard_sectors, &v); in virtblk_probe()
|
/Linux-v5.10/include/linux/ |
D | blkdev.h | 336 unsigned int max_discard_sectors; member 1059 return min(q->limits.max_discard_sectors, in blk_queue_get_max_sectors() 1147 unsigned int max_discard_sectors); 1510 if (!lim->max_discard_sectors) in queue_limit_discard_alignment()
|
/Linux-v5.10/drivers/md/ |
D | dm-clone-target.c | 2050 else if (dest_limits->max_discard_sectors < clone->region_size) in disable_passdown_if_not_supported() 2068 limits->max_discard_sectors = round_down(UINT_MAX >> SECTOR_SHIFT, clone->region_size); in set_discard_limits() 2077 limits->max_discard_sectors = dest_limits->max_discard_sectors; in set_discard_limits()
|
D | dm-rq.c | 219 !clone->q->limits.max_discard_sectors) in dm_done()
|
D | dm-io.c | 315 special_cmd_max_sectors = q->limits.max_discard_sectors; in do_region()
|
D | dm-cache-target.c | 3415 else if (origin_limits->max_discard_sectors < cache->sectors_per_block) in disable_passdown_if_not_supported() 3432 limits->max_discard_sectors = min_t(sector_t, cache->discard_block_size * 1024, in set_discard_limits() 3442 limits->max_discard_sectors = origin_limits->max_discard_sectors; in set_discard_limits()
|
D | dm-log-writes.c | 895 limits->max_discard_sectors = (UINT_MAX >> SECTOR_SHIFT); in log_writes_io_hints()
|
D | dm-zoned-target.c | 1009 limits->max_discard_sectors = chunk_sectors; in dmz_io_hints()
|
D | dm.c | 949 limits->max_discard_sectors = 0; in disable_discard() 980 !bio->bi_disk->queue->limits.max_discard_sectors) in clone_endio()
|
D | dm-raid.c | 3739 limits->max_discard_sectors = min_not_zero(rs->md.chunk_sectors, in raid_io_hints() 3740 limits->max_discard_sectors); in raid_io_hints()
|
D | dm-table.c | 1820 q->limits.max_discard_sectors = 0; in dm_table_set_restrictions()
|
D | dm-thin.c | 2845 else if (data_limits->max_discard_sectors < pool->sectors_per_block) in disable_passdown_if_not_supported() 4466 limits->max_discard_sectors = 2048 * 1024 * 16; /* 16G */ in thin_io_hints()
|
/Linux-v5.10/drivers/block/drbd/ |
D | drbd_receiver.c | 1517 unsigned int max_discard_sectors, granularity; in drbd_issue_discard_or_zero_out() local 1528 max_discard_sectors = min(q->limits.max_discard_sectors, (1U << 22)); in drbd_issue_discard_or_zero_out() 1529 max_discard_sectors -= max_discard_sectors % granularity; in drbd_issue_discard_or_zero_out() 1530 if (unlikely(!max_discard_sectors)) in drbd_issue_discard_or_zero_out() 1551 while (nr_sectors >= max_discard_sectors) { in drbd_issue_discard_or_zero_out() 1552 err |= blkdev_issue_discard(bdev, start, max_discard_sectors, GFP_NOIO, 0); in drbd_issue_discard_or_zero_out() 1553 nr_sectors -= max_discard_sectors; in drbd_issue_discard_or_zero_out() 1554 start += max_discard_sectors; in drbd_issue_discard_or_zero_out()
|
D | drbd_nl.c | 1228 q->limits.max_discard_sectors = drbd_max_discard_sectors(connection); in decide_on_discard_support() 1234 q->limits.max_discard_sectors = 0; in decide_on_discard_support() 1530 if (disk_conf->rs_discard_granularity > q->limits.max_discard_sectors << 9) in sanitize_disk_conf() 1531 disk_conf->rs_discard_granularity = q->limits.max_discard_sectors << 9; in sanitize_disk_conf()
|
/Linux-v5.10/drivers/target/ |
D | target_core_device.c | 824 q->limits.max_discard_sectors >> (ilog2(block_size) - 9); in target_configure_unmap_from_queue()
|