Home
last modified time | relevance | path

Searched refs:max_write_same_sectors (Results 1 – 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/block/
Dblk-lib.c170 unsigned int max_write_same_sectors; in __blkdev_issue_write_same() local
188 max_write_same_sectors = bio_allowed_max_sectors(q); in __blkdev_issue_write_same()
200 if (nr_sects > max_write_same_sectors) { in __blkdev_issue_write_same()
201 bio->bi_iter.bi_size = max_write_same_sectors << 9; in __blkdev_issue_write_same()
202 nr_sects -= max_write_same_sectors; in __blkdev_issue_write_same()
203 sector += max_write_same_sectors; in __blkdev_issue_write_same()
Dblk-settings.c49 lim->max_write_same_sectors = 0; in blk_set_default_limits()
85 lim->max_write_same_sectors = UINT_MAX; in blk_set_stacking_limits()
205 unsigned int max_write_same_sectors) in blk_queue_max_write_same_sectors() argument
207 q->limits.max_write_same_sectors = max_write_same_sectors; in blk_queue_max_write_same_sectors()
508 t->max_write_same_sectors = min(t->max_write_same_sectors, in blk_stack_limits()
509 b->max_write_same_sectors); in blk_stack_limits()
Dblk-merge.c128 if (!q->limits.max_write_same_sectors) in blk_bio_write_same_split()
131 if (bio_sectors(bio) <= q->limits.max_write_same_sectors) in blk_bio_write_same_split()
134 return bio_split(bio, q->limits.max_write_same_sectors, GFP_NOIO, bs); in blk_bio_write_same_split()
Dblk-sysfs.c213 (unsigned long long)q->limits.max_write_same_sectors << 9); in queue_write_same_max_show()
Dblk-core.c864 if (!q->limits.max_write_same_sectors) in submit_bio_checks()
/kernel/linux/linux-5.10/drivers/block/rnbd/
Drnbd-clt.h116 u32 max_write_same_sectors; member
Drnbd-proto.h133 __le32 max_write_same_sectors; member
Drnbd-clt.c85 dev->max_write_same_sectors = le32_to_cpu(rsp->max_write_same_sectors); in rnbd_clt_set_dev_attr()
1290 dev->max_write_same_sectors); in setup_request_queue()
1534 dev->max_write_same_sectors, dev->max_discard_sectors, in rnbd_clt_map_device()
Drnbd-srv.c551 rsp->max_write_same_sectors = in rnbd_srv_fill_msg_open_rsp()
/kernel/linux/linux-5.10/include/linux/
Dblkdev.h343 unsigned int max_write_same_sectors; member
1082 return q->limits.max_write_same_sectors; in blk_queue_get_max_sectors()
1168 unsigned int max_write_same_sectors);
1170 unsigned int max_write_same_sectors);
1577 return q->limits.max_write_same_sectors; in bdev_write_same()
/kernel/linux/linux-5.10/drivers/md/
Dmd.h795 !bio->bi_disk->queue->limits.max_write_same_sectors) in mddev_check_writesame()
796 mddev->queue->limits.max_write_same_sectors = 0; in mddev_check_writesame()
Ddm-io.c319 special_cmd_max_sectors = q->limits.max_write_same_sectors; in do_region()
Ddm-rq.c222 !clone->q->limits.max_write_same_sectors) in dm_done()
Ddm-table.c1654 return q && !q->limits.max_write_same_sectors; in device_not_write_same_capable()
1855 q->limits.max_write_same_sectors = 0; in dm_table_set_restrictions()
Ddm.c973 limits->max_write_same_sectors = 0; in disable_write_same()
1003 !bio->bi_disk->queue->limits.max_write_same_sectors) in clone_endio()
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_main.c931 p->qlim->write_same_capable = !!q->limits.max_write_same_sectors; in assign_p_sizes_qlim()
Ddrbd_nl.c1275 bool can_do = b ? b->limits.max_write_same_sectors : true; in decide_on_write_same_support()