Searched refs:queue_max_discard_segments (Results 1 – 6 of 6) sorted by relevance
157 queue_max_discard_segments(req->q) > 1) in blk_discard_mergable()165 return queue_max_discard_segments(rq->q); in blk_rq_get_max_segments()
425 if (queue_max_discard_segments(rq->q) > 1) { in blk_recalc_rq_segments()678 if (segments >= queue_max_discard_segments(q)) in req_attempt_discard_merge()1036 if (segments >= queue_max_discard_segments(q)) in bio_attempt_discard_merge()
118 return queue_var_show(queue_max_discard_segments(q), page); in queue_max_discard_segments_show()504 QUEUE_RO_ENTRY(queue_max_discard_segments, "max_discard_segments");
1115 static inline unsigned short queue_max_discard_segments(const struct request_queue *q) in queue_max_discard_segments() function
182 if (queue_max_discard_segments(req->q) == 1) { in virtblk_setup_discard_write_zeroes_erase()
793 if (queue_max_discard_segments(req->q) == 1) { in nvme_setup_discard()