Home
last modified time | relevance | path

Searched refs:max_discard_sectors (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.10/block/
Dblk-settings.c52 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()
Dblk-merge.c67 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()
Dblk-sysfs.c179 (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/
Dvirtio_blk.h97 __virtio32 max_discard_sectors; member
/Linux-v5.10/drivers/block/rnbd/
Drnbd-clt.h117 u32 max_discard_sectors; member
Drnbd-proto.h134 __le32 max_discard_sectors; member
Drnbd-clt.c85 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()
Drnbd-srv.c553 rsp->max_discard_sectors = in rnbd_srv_fill_msg_open_rsp()
/Linux-v5.10/drivers/s390/block/
Ddasd_fba.c780 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/
Dloop.c882 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()
Dvirtio_blk.c867 max_discard_sectors, &v); in virtblk_probe()
/Linux-v5.10/include/linux/
Dblkdev.h336 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/
Ddm-clone-target.c2050 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()
Ddm-rq.c219 !clone->q->limits.max_discard_sectors) in dm_done()
Ddm-io.c315 special_cmd_max_sectors = q->limits.max_discard_sectors; in do_region()
Ddm-cache-target.c3415 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()
Ddm-log-writes.c895 limits->max_discard_sectors = (UINT_MAX >> SECTOR_SHIFT); in log_writes_io_hints()
Ddm-zoned-target.c1009 limits->max_discard_sectors = chunk_sectors; in dmz_io_hints()
Ddm.c949 limits->max_discard_sectors = 0; in disable_discard()
980 !bio->bi_disk->queue->limits.max_discard_sectors) in clone_endio()
Ddm-raid.c3739 limits->max_discard_sectors = min_not_zero(rs->md.chunk_sectors, in raid_io_hints()
3740 limits->max_discard_sectors); in raid_io_hints()
Ddm-table.c1820 q->limits.max_discard_sectors = 0; in dm_table_set_restrictions()
Ddm-thin.c2845 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/
Ddrbd_receiver.c1517 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()
Ddrbd_nl.c1228 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/
Dtarget_core_device.c824 q->limits.max_discard_sectors >> (ilog2(block_size) - 9); in target_configure_unmap_from_queue()

12