/kernel/linux/linux-5.10/include/linux/ |
D | bio.h | 51 (op_is_write(bio_op(bio)) ? WRITE : READ) 60 bio_op(bio) != REQ_OP_DISCARD && in bio_has_data() 61 bio_op(bio) != REQ_OP_SECURE_ERASE && in bio_has_data() 62 bio_op(bio) != REQ_OP_WRITE_ZEROES) in bio_has_data() 70 return bio_op(bio) == REQ_OP_DISCARD || in bio_no_advance_iter() 71 bio_op(bio) == REQ_OP_SECURE_ERASE || in bio_no_advance_iter() 72 bio_op(bio) == REQ_OP_WRITE_SAME || in bio_no_advance_iter() 73 bio_op(bio) == REQ_OP_WRITE_ZEROES; in bio_no_advance_iter() 188 switch (bio_op(bio)) { in bio_segments()
|
D | blk_types.h | 447 #define bio_op(bio) \ macro
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-ebs-target.c | 194 if (bio_op(bio) == REQ_OP_READ) in __ebs_process_bios() 196 else if (bio_op(bio) == REQ_OP_WRITE && !(bio->bi_opf & REQ_PREFLUSH)) { in __ebs_process_bios() 207 if (bio_op(bio) == REQ_OP_READ) in __ebs_process_bios() 209 else if (bio_op(bio) == REQ_OP_WRITE) { in __ebs_process_bios() 212 } else if (bio_op(bio) == REQ_OP_DISCARD) { in __ebs_process_bios() 229 if (unlikely(r && bio_op(bio) == REQ_OP_WRITE)) in __ebs_process_bios() 366 if (unlikely(bio_op(bio) == REQ_OP_FLUSH)) in ebs_map()
|
D | dm-zoned-target.c | 90 bio_op(bio) == REQ_OP_WRITE && in dmz_bio_endio() 145 if (bio_op(bio) == REQ_OP_WRITE && dmz_is_seq(zone)) in dmz_submit_bio() 413 bio_op(bio)); in dmz_handle_bio() 426 switch (bio_op(bio)) { in dmz_handle_bio() 439 dmz_metadata_label(dmz->metadata), bio_op(bio)); in dmz_handle_bio() 641 bio_op(bio), (unsigned long long)sector, nr_sectors, in dmz_map() 646 if (!nr_sectors && bio_op(bio) != REQ_OP_WRITE) in dmz_map() 660 if (!nr_sectors && bio_op(bio) == REQ_OP_WRITE) { in dmz_map() 678 bio_op(bio), (u64)dmz_bio_chunk(zmd, bio), in dmz_map()
|
D | dm-zero.c | 38 switch (bio_op(bio)) { in zero_map()
|
D | dm-stripe.c | 285 if (unlikely(bio_op(bio) == REQ_OP_DISCARD) || in stripe_map() 286 unlikely(bio_op(bio) == REQ_OP_SECURE_ERASE) || in stripe_map() 287 unlikely(bio_op(bio) == REQ_OP_WRITE_ZEROES) || in stripe_map() 288 unlikely(bio_op(bio) == REQ_OP_WRITE_SAME)) { in stripe_map()
|
D | dm-flakey.c | 283 if (bio_sectors(bio) || op_is_zone_mgmt(bio_op(bio))) in flakey_map_bio() 325 if (op_is_zone_mgmt(bio_op(bio))) in flakey_map() 386 if (op_is_zone_mgmt(bio_op(bio))) in flakey_end_io()
|
D | dm.c | 994 if (bio_op(bio) == REQ_OP_DISCARD && in clone_endio() 997 else if (bio_op(bio) == REQ_OP_WRITE_SAME && in clone_endio() 1000 else if (bio_op(bio) == REQ_OP_WRITE_ZEROES && in clone_endio() 1009 if (bio_op(orig_bio) == REQ_OP_ZONE_APPEND) { in clone_endio() 1266 BUG_ON(op_is_zone_mgmt(bio_op(bio))); in dm_accept_partial_bio() 1267 BUG_ON(bio_op(bio) == REQ_OP_ZONE_APPEND); in dm_accept_partial_bio() 1547 switch (bio_op(bio)) { in is_abnormal_io() 1565 switch (bio_op(bio)) { in __process_abnormal_io() 1640 } else if (op_is_zone_mgmt(bio_op(bio))) { in __split_and_process_bio() 1671 sectors[op_stat_group(bio_op(bio))], ci.sector_count); in __split_and_process_bio()
|
D | md.h | 794 if (bio_op(bio) == REQ_OP_WRITE_SAME && in mddev_check_writesame() 801 if (bio_op(bio) == REQ_OP_WRITE_ZEROES && in mddev_check_write_zeroes()
|
D | dm-raid1.c | 622 if (bio_op(bio) == REQ_OP_DISCARD) { in write_callback() 661 if (bio_op(bio) == REQ_OP_DISCARD) { in do_write() 701 (bio_op(bio) == REQ_OP_DISCARD)) { in do_writes() 1248 bio_op(bio) != REQ_OP_DISCARD) in mirror_end_io()
|
D | dm-region-hash.c | 408 if (bio_op(bio) == REQ_OP_DISCARD) in dm_rh_mark_nosync() 531 if (bio->bi_opf & REQ_PREFLUSH || bio_op(bio) == REQ_OP_DISCARD) in dm_rh_inc_pending()
|
D | dm-linear.c | 93 if (bio_sectors(bio) || op_is_zone_mgmt(bio_op(bio))) in linear_map_bio()
|
D | md-linear.c | 255 if (unlikely((bio_op(bio) == REQ_OP_DISCARD) && in linear_make_request()
|
/kernel/linux/linux-5.10/block/ |
D | bio-integrity.c | 223 if (bio_op(bio) != REQ_OP_READ && bio_op(bio) != REQ_OP_WRITE) in bio_integrity_prep() 361 if (bio_op(bio) == REQ_OP_READ && !bio->bi_status && in __bio_integrity_endio()
|
D | blk-core.c | 696 const int op = bio_op(bio); in bio_check_ro() 854 switch (bio_op(bio)) { in submit_bio_checks() 1087 if (unlikely(bio_op(bio) == REQ_OP_WRITE_SAME)) in submit_bio() 1092 if (op_is_write(bio_op(bio))) { in submit_bio() 1106 if (unlikely(bio_op(bio) == REQ_OP_READ && in submit_bio() 1337 return __part_start_io_acct(*part, bio_sectors(bio), bio_op(bio)); in part_start_io_acct() 1365 __part_end_io_acct(part, bio_op(bio), start_time); in part_end_io_acct()
|
D | blk-merge.c | 303 switch (bio_op(*bio)) { in __blk_queue_split() 377 switch (bio_op(rq->bio)) { in blk_recalc_rq_segments() 529 else if (rq->bio && bio_op(rq->bio) == REQ_OP_WRITE_SAME) in __blk_rq_map_sg() 850 if (req_op(rq) != bio_op(bio)) in blk_rq_merge_ok()
|
D | blk-wbt.c | 524 switch (bio_op(bio)) { in wbt_should_throttle() 547 if (bio_op(bio) == REQ_OP_READ) { in bio_to_wbt_flags() 552 if (bio_op(bio) == REQ_OP_DISCARD) in bio_to_wbt_flags()
|
D | blk-mq.h | 279 if (!blk_queue_is_zoned(q) || !op_is_write(bio_op(bio))) in blk_mq_plug()
|
D | bounce.c | 256 switch (bio_op(bio)) { in bounce_clone_bio()
|
D | bio.c | 567 if (bio_op(bio) != REQ_OP_READ) in bio_truncate() 1124 if (bio_op(bio) == REQ_OP_ZONE_APPEND) { in bio_iov_iter_get_pages() 1489 if (WARN_ON_ONCE(bio_op(bio) == REQ_OP_ZONE_APPEND)) in bio_split()
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
D | drbd_req.c | 35 | (bio_op(bio_src) == REQ_OP_WRITE_SAME ? RQ_WSAME : 0) in drbd_req_new() 36 | (bio_op(bio_src) == REQ_OP_WRITE_ZEROES ? RQ_ZEROES : 0) in drbd_req_new() 37 | (bio_op(bio_src) == REQ_OP_DISCARD ? RQ_UNMAP : 0); in drbd_req_new() 243 if (op_is_write(bio_op(req->master_bio)) && in drbd_req_complete() 265 bio_op(req->master_bio) == REQ_OP_READ && in drbd_req_complete() 1144 if (bio_op(bio) != REQ_OP_READ) in drbd_submit_req_private_bio() 1161 else if (bio_op(bio) == REQ_OP_WRITE_ZEROES) in drbd_submit_req_private_bio() 1164 else if (bio_op(bio) == REQ_OP_DISCARD) in drbd_submit_req_private_bio() 1217 if (bio_op(bio) == REQ_OP_WRITE_ZEROES || in drbd_request_prepare() 1218 bio_op(bio) == REQ_OP_DISCARD) in drbd_request_prepare()
|
/kernel/linux/linux-5.10/drivers/md/bcache/ |
D | request.c | 373 (bio_op(bio) == REQ_OP_DISCARD)) in check_should_bypass() 378 op_is_write(bio_op(bio)))) in check_should_bypass() 732 s->write = op_is_write(bio_op(bio)); in search_alloc() 998 if (bio_op(bio) == REQ_OP_DISCARD) in cached_dev_write() 1012 if (bio_op(bio) == REQ_OP_DISCARD && in cached_dev_write() 1120 if ((bio_op(bio) == REQ_OP_DISCARD) && in detached_dev_do_request() 1303 s->iop.bypass = (bio_op(bio) == REQ_OP_DISCARD) != 0; in flash_dev_submit_bio()
|
D | writeback.h | 108 if (bio_op(bio) == REQ_OP_DISCARD) in should_writeback()
|
D | io.c | 143 unsigned int threshold = op_is_write(bio_op(bio)) in bch_bbio_count_io_errors()
|
/kernel/linux/linux-5.10/drivers/block/ |
D | umem.c | 367 bio_op(bio) == REQ_OP_READ ? in add_bio() 396 if (bio_op(bio) == REQ_OP_WRITE) in add_bio() 460 } else if (op_is_write(bio_op(bio)) && in process_page()
|