Home
last modified time | relevance | path

Searched refs:queue_max_discard_segments (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/block/
Dblk-merge.c540 return queue_max_discard_segments(rq->q); in blk_rq_get_max_segments()
607 if (segments >= queue_max_discard_segments(q)) in req_attempt_discard_merge()
702 queue_max_discard_segments(req->q) > 1) in blk_discard_mergable()
974 if (segments >= queue_max_discard_segments(q)) in bio_attempt_discard_merge()
Dblk-sysfs.c126 return queue_var_show(queue_max_discard_segments(q), (page)); in queue_max_discard_segments_show()
579 QUEUE_RO_ENTRY(queue_max_discard_segments, "max_discard_segments");
/Linux-v5.10/drivers/block/
Dvirtio_blk.c135 if (queue_max_discard_segments(req->q) == 1) { in virtblk_setup_discard_write_zeroes()
/Linux-v5.10/include/linux/
Dblkdev.h1406 static inline unsigned short queue_max_discard_segments(const struct request_queue *q) in queue_max_discard_segments() function