/linux-6.6.21/drivers/block/rnbd/ |
D | rnbd-proto.h | 234 bio_opf = REQ_OP_DISCARD; in rnbd_to_bio_flags() 265 case REQ_OP_DISCARD: in rq_to_rnbd_flags()
|
/linux-6.6.21/drivers/md/ |
D | dm-io.c | 324 if (op == REQ_OP_DISCARD) in do_region() 328 if ((op == REQ_OP_DISCARD || op == REQ_OP_WRITE_ZEROES) && in do_region() 344 case REQ_OP_DISCARD: in do_region() 359 if (op == REQ_OP_DISCARD || op == REQ_OP_WRITE_ZEROES) { in do_region()
|
D | dm-zero.c | 49 case REQ_OP_DISCARD: in zero_map()
|
D | raid1-10.c | 125 else if (unlikely(bio_op(bio) == REQ_OP_DISCARD && in raid1_submit_write()
|
D | dm-raid1.c | 630 if (bio_op(bio) == REQ_OP_DISCARD) { in write_callback() 669 if (bio_op(bio) == REQ_OP_DISCARD) { in do_write() 670 io_req.bi_opf = REQ_OP_DISCARD | op_flags; in do_write() 709 (bio_op(bio) == REQ_OP_DISCARD)) { in do_writes() 1260 bio_op(bio) != REQ_OP_DISCARD) in mirror_end_io()
|
D | dm-region-hash.c | 411 if (bio_op(bio) == REQ_OP_DISCARD) in dm_rh_mark_nosync() 534 if (bio->bi_opf & REQ_PREFLUSH || bio_op(bio) == REQ_OP_DISCARD) in dm_rh_inc_pending()
|
D | md-linear.c | 246 if (unlikely((bio_op(bio) == REQ_OP_DISCARD) && in linear_make_request()
|
D | dm-integrity.c | 1620 if (dio->op == REQ_OP_WRITE || unlikely(dio->op == REQ_OP_DISCARD)) in dec_in_flight() 1796 if (likely(dio->op != REQ_OP_DISCARD)) in integrity_metadata() 1810 if (unlikely(dio->op == REQ_OP_DISCARD)) { in integrity_metadata() 1930 if (unlikely(dio->op == REQ_OP_DISCARD)) { in dm_integrity_map() 1972 if (ic->sectors_per_block > 1 && likely(dio->op != REQ_OP_DISCARD)) { in dm_integrity_map() 2182 if (unlikely(dio->op == REQ_OP_DISCARD) && ic->mode != 'D') in dm_integrity_map_continue() 2201 if (ic->mode == 'J' && likely(dio->op != REQ_OP_DISCARD)) { in dm_integrity_map_continue() 2301 if (ic->mode == 'J' && likely(dio->op == REQ_OP_DISCARD) && !discard_retried) { in dm_integrity_map_continue() 2326 if (ic->mode == 'B' && (dio->op == REQ_OP_WRITE || unlikely(dio->op == REQ_OP_DISCARD))) { in dm_integrity_map_continue() 2355 if (unlikely(dio->op == REQ_OP_DISCARD) && likely(ic->mode != 'D')) { in dm_integrity_map_continue()
|
D | dm-thin.c | 415 op->bio->bi_opf = REQ_OP_DISCARD; in end_discard() 748 if (bio_op(bio) == REQ_OP_DISCARD) in inc_all_io_entry() 915 if (op_is_flush(bio->bi_opf) || bio_op(bio) == REQ_OP_DISCARD) in __inc_remap_and_issue_cell() 1839 bio_op(bio) == REQ_OP_DISCARD) in __remap_and_issue_shared_cell() 2228 if (bio_op(bio) == REQ_OP_DISCARD) in process_thin_deferred_bios() 2315 if (bio_op(cell->holder) == REQ_OP_DISCARD) in process_thin_deferred_cells() 2746 if (op_is_flush(bio->bi_opf) || bio_op(bio) == REQ_OP_DISCARD) { in thin_bio_map()
|
D | dm-ebs-target.c | 214 } else if (bio_op(bio) == REQ_OP_DISCARD) { in __ebs_process_bios()
|
D | dm-rq.c | 218 if (req_op(clone) == REQ_OP_DISCARD && in dm_done()
|
D | dm-stripe.c | 283 if (unlikely(bio_op(bio) == REQ_OP_DISCARD) || in stripe_map()
|
/linux-6.6.21/block/ |
D | blk.h | 156 if (req_op(req) == REQ_OP_DISCARD && in blk_discard_mergable() 164 if (req_op(rq) == REQ_OP_DISCARD) in blk_rq_get_max_segments() 172 if (unlikely(op == REQ_OP_DISCARD || op == REQ_OP_SECURE_ERASE)) in blk_queue_get_max_sectors() 300 case REQ_OP_DISCARD: in bio_may_exceed_limits()
|
D | blk-merge.c | 362 case REQ_OP_DISCARD: in __bio_split_to_limits() 423 case REQ_OP_DISCARD: in blk_recalc_rq_segments() 601 req_op(rq) == REQ_OP_DISCARD || in blk_rq_get_max_sectors() 618 if (req_op(req) == REQ_OP_DISCARD) in ll_new_hw_segment()
|
D | blk-wbt.c | 538 if ((opf & REQ_OP_MASK) == REQ_OP_DISCARD) in get_limit() 609 case REQ_OP_DISCARD: in wbt_should_throttle() 628 if (bio_op(bio) == REQ_OP_DISCARD) in bio_to_wbt_flags()
|
D | bounce.c | 176 case REQ_OP_DISCARD: in bounce_clone_bio()
|
D | blk-lib.c | 67 bio = blk_next_bio(bio, bdev, 0, REQ_OP_DISCARD, gfp_mask); in __blkdev_issue_discard()
|
/linux-6.6.21/include/linux/ |
D | blk_types.h | 379 REQ_OP_DISCARD = (__force blk_opf_t)3, enumerator 507 return (op & REQ_OP_MASK) == REQ_OP_DISCARD; in op_is_discard()
|
D | bio.h | 58 bio_op(bio) != REQ_OP_DISCARD && in bio_has_data() 68 return bio_op(bio) == REQ_OP_DISCARD || in bio_no_advance_iter() 186 case REQ_OP_DISCARD: in bio_segments()
|
/linux-6.6.21/drivers/md/bcache/ |
D | writeback.h | 112 if (bio_op(bio) == REQ_OP_DISCARD) in should_writeback()
|
D | request.c | 373 (bio_op(bio) == REQ_OP_DISCARD)) in check_should_bypass() 993 if (bio_op(bio) == REQ_OP_DISCARD) in cached_dev_write() 1007 if (bio_op(bio) == REQ_OP_DISCARD && in cached_dev_write() 1123 if ((bio_op(bio) == REQ_OP_DISCARD) && in detached_dev_do_request() 1309 s->iop.bypass = (bio_op(bio) == REQ_OP_DISCARD) != 0; in flash_dev_submit_bio()
|
/linux-6.6.21/arch/um/drivers/ |
D | ubd_kern.c | 483 if ((io_req->error == BLK_STS_NOTSUPP) && (req_op(io_req->req) == REQ_OP_DISCARD)) { in ubd_handler() 1259 if (op == REQ_OP_WRITE_ZEROES || op == REQ_OP_DISCARD) { in ubd_map_req() 1324 else if (op == REQ_OP_WRITE_ZEROES || op == REQ_OP_DISCARD) in ubd_submit_request() 1361 case REQ_OP_DISCARD: in ubd_queue_rq() 1517 case REQ_OP_DISCARD: in do_io()
|
/linux-6.6.21/drivers/block/drbd/ |
D | drbd_req.c | 35 | (bio_op(bio_src) == REQ_OP_DISCARD ? RQ_UNMAP : 0); in drbd_req_new() 1175 else if (bio_op(bio) == REQ_OP_DISCARD) in drbd_submit_req_private_bio() 1232 bio_op(bio) == REQ_OP_DISCARD) in drbd_request_prepare()
|
/linux-6.6.21/drivers/mmc/core/ |
D | queue.c | 49 case REQ_OP_DISCARD: in mmc_cqe_issue_type()
|
/linux-6.6.21/Documentation/admin-guide/device-mapper/ |
D | log-writes.rst | 42 Any REQ_OP_DISCARD requests are treated like WRITE requests. Otherwise we would
|