/linux-6.3-rc2/drivers/md/ |
A D | dm-ebs-target.c | 196 if (bio_op(bio) == REQ_OP_READ) in __ebs_process_bios() 198 else if (bio_op(bio) == REQ_OP_WRITE && !(bio->bi_opf & REQ_PREFLUSH)) { in __ebs_process_bios() 209 if (bio_op(bio) == REQ_OP_READ) in __ebs_process_bios() 211 else if (bio_op(bio) == REQ_OP_WRITE) { in __ebs_process_bios() 214 } else if (bio_op(bio) == REQ_OP_DISCARD) { in __ebs_process_bios() 231 if (unlikely(r && bio_op(bio) == REQ_OP_WRITE)) in __ebs_process_bios() 368 if (unlikely(bio_op(bio) == REQ_OP_FLUSH)) in ebs_map()
|
A D | dm-zone.c | 131 switch (bio_op(bio)) { in dm_is_zone_write() 386 switch (bio_op(clone)) { in dm_zone_map_bio_begin() 498 switch (bio_op(bio)) { in dm_need_zone_wp_tracking() 536 orig_bio_details.op = bio_op(clone); in dm_zone_map_bio() 604 bio_op(clone) == REQ_OP_ZONE_APPEND) { in dm_zone_endio() 633 } else if (bio_op(orig_bio) == REQ_OP_ZONE_APPEND) { in dm_zone_endio()
|
A D | dm-zoned-target.c | 90 bio_op(bio) == REQ_OP_WRITE && in dmz_bio_endio() 144 if (bio_op(bio) == REQ_OP_WRITE && dmz_is_seq(zone)) in dmz_submit_bio() 412 bio_op(bio)); in dmz_handle_bio() 425 switch (bio_op(bio)) { in dmz_handle_bio() 438 dmz_metadata_label(dmz->metadata), bio_op(bio)); in dmz_handle_bio() 640 bio_op(bio), (unsigned long long)sector, nr_sectors, in dmz_map() 645 if (!nr_sectors && bio_op(bio) != REQ_OP_WRITE) in dmz_map() 659 if (!nr_sectors && bio_op(bio) == REQ_OP_WRITE) { in dmz_map() 677 bio_op(bio), (u64)dmz_bio_chunk(zmd, bio), in dmz_map()
|
A D | dm-zero.c | 39 switch (bio_op(bio)) { in zero_map()
|
A D | dm-stripe.c | 283 if (unlikely(bio_op(bio) == REQ_OP_DISCARD) || in stripe_map() 284 unlikely(bio_op(bio) == REQ_OP_SECURE_ERASE) || in stripe_map() 285 unlikely(bio_op(bio) == REQ_OP_WRITE_ZEROES)) { in stripe_map()
|
A D | dm-flakey.c | 333 if (op_is_zone_mgmt(bio_op(bio))) in flakey_map() 395 if (op_is_zone_mgmt(bio_op(bio))) in flakey_end_io()
|
A D | dm.c | 515 bdev_start_io_acct(bio->bi_bdev, sectors, bio_op(bio), in dm_io_acct() 518 bdev_end_io_acct(bio->bi_bdev, bio_op(bio), start_time); in dm_io_acct() 1106 if (bio_op(bio) == REQ_OP_DISCARD && in clone_endio() 1109 else if (bio_op(bio) == REQ_OP_WRITE_ZEROES && in clone_endio() 1327 BUG_ON(op_is_zone_mgmt(bio_op(bio))); in dm_accept_partial_bio() 1328 BUG_ON(bio_op(bio) == REQ_OP_ZONE_APPEND); in dm_accept_partial_bio() 1586 enum req_op op = bio_op(bio); in is_abnormal_io() 1607 switch (bio_op(ci->bio)) { in __process_abnormal_io() 1726 WARN_ON_ONCE(op_is_zone_mgmt(bio_op(bio)) && ci->sector_count)) in init_clone_info()
|
A 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() 709 (bio_op(bio) == REQ_OP_DISCARD)) { in do_writes() 1260 bio_op(bio) != REQ_OP_DISCARD) in mirror_end_io()
|
A 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()
|
A D | md-linear.c | 244 if (unlikely((bio_op(bio) == REQ_OP_DISCARD) && in linear_make_request()
|
/linux-6.3-rc2/include/linux/ |
A D | bio.h | 49 (op_is_write(bio_op(bio)) ? WRITE : READ) 58 bio_op(bio) != REQ_OP_DISCARD && in bio_has_data() 59 bio_op(bio) != REQ_OP_SECURE_ERASE && in bio_has_data() 60 bio_op(bio) != REQ_OP_WRITE_ZEROES) in bio_has_data() 68 return bio_op(bio) == REQ_OP_DISCARD || in bio_no_advance_iter() 69 bio_op(bio) == REQ_OP_SECURE_ERASE || in bio_no_advance_iter() 70 bio_op(bio) == REQ_OP_WRITE_ZEROES; in bio_no_advance_iter() 185 switch (bio_op(bio)) { in bio_segments()
|
A D | blk_types.h | 470 static inline enum req_op bio_op(const struct bio *bio) in bio_op() function
|
/linux-6.3-rc2/block/ |
A D | blk-core.c | 502 if (op_is_write(bio_op(bio)) && bdev_read_only(bio->bi_bdev)) { in bio_check_ro() 757 if (WARN_ON_ONCE(bio_op(bio) != REQ_OP_WRITE && in submit_bio_noacct() 758 bio_op(bio) != REQ_OP_ZONE_APPEND)) in submit_bio_noacct() 772 switch (bio_op(bio)) { in submit_bio_noacct() 836 if (bio_op(bio) == REQ_OP_READ) { in submit_bio() 839 } else if (bio_op(bio) == REQ_OP_WRITE) { in submit_bio() 988 bio_op(bio), jiffies); in bio_start_io_acct() 1010 bdev_end_io_acct(orig_bdev, bio_op(bio), start_time); in bio_end_io_acct_remapped()
|
A D | bio-integrity.c | 208 if (bio_op(bio) != REQ_OP_READ && bio_op(bio) != REQ_OP_WRITE) in bio_integrity_prep() 346 if (bio_op(bio) == REQ_OP_READ && !bio->bi_status && in __bio_integrity_endio()
|
A D | blk-wbt.c | 617 switch (bio_op(bio)) { in wbt_should_throttle() 640 if (bio_op(bio) == REQ_OP_READ) { in bio_to_wbt_flags() 645 if (bio_op(bio) == REQ_OP_DISCARD) in bio_to_wbt_flags()
|
A D | bio.c | 639 if (bio_op(bio) != REQ_OP_READ) in bio_truncate() 1084 if (WARN_ON_ONCE(bio_op(bio) != REQ_OP_ZONE_APPEND)) in bio_add_zone_append_page() 1182 if (bio_op(bio) == REQ_OP_ZONE_APPEND) { in bio_iov_bvec_set() 1289 if (bio_op(bio) == REQ_OP_ZONE_APPEND) { in __bio_iov_iter_get_pages() 1634 if (WARN_ON_ONCE(bio_op(bio) == REQ_OP_ZONE_APPEND)) in bio_split()
|
A D | bounce.c | 175 switch (bio_op(bio)) { in bounce_clone_bio()
|
A D | blk-merge.c | 361 switch (bio_op(bio)) { in __bio_split_to_limits() 422 switch (bio_op(rq->bio)) { in blk_recalc_rq_segments() 923 if (req_op(rq) != bio_op(bio)) in blk_rq_merge_ok()
|
A D | blk-mq.h | 316 bdev_op_is_zoned_write(bio->bi_bdev, bio_op(bio))) in blk_mq_plug()
|
/linux-6.3-rc2/fs/btrfs/ |
A D | bio.c | 326 if (bio_op(bio) == REQ_OP_READ) { in btrfs_simple_end_io() 330 if (bio_op(bio) == REQ_OP_ZONE_APPEND) in btrfs_simple_end_io() 343 if (bio_op(bio) == REQ_OP_READ && !(bbio->bio.bi_opf & REQ_META)) in btrfs_raid56_end_io() 407 if (bio_op(bio) == REQ_OP_ZONE_APPEND) { in btrfs_submit_dev_bio() 416 __func__, bio_op(bio), bio->bi_opf, bio->bi_iter.bi_sector, in btrfs_submit_dev_bio() 428 ASSERT(bio_op(orig_bio) != REQ_OP_READ); in btrfs_submit_mirrored_bio() 463 if (bio_op(bio) == REQ_OP_READ) in __btrfs_submit_bio() 642 if (bio_op(bio) == REQ_OP_READ && !(bio->bi_opf & REQ_META)) { in btrfs_submit_chunk()
|
/linux-6.3-rc2/drivers/block/drbd/ |
A D | drbd_req.c | 34 | (bio_op(bio_src) == REQ_OP_WRITE_ZEROES ? RQ_ZEROES : 0) in drbd_req_new() 35 | (bio_op(bio_src) == REQ_OP_DISCARD ? RQ_UNMAP : 0); in drbd_req_new() 242 if (op_is_write(bio_op(req->master_bio)) && in drbd_req_complete() 264 bio_op(req->master_bio) == REQ_OP_READ && in drbd_req_complete() 1152 if (bio_op(bio) != REQ_OP_READ) in drbd_submit_req_private_bio() 1167 else if (bio_op(bio) == REQ_OP_WRITE_ZEROES) in drbd_submit_req_private_bio() 1170 else if (bio_op(bio) == REQ_OP_DISCARD) in drbd_submit_req_private_bio() 1226 if (bio_op(bio) == REQ_OP_WRITE_ZEROES || in drbd_request_prepare() 1227 bio_op(bio) == REQ_OP_DISCARD) in drbd_request_prepare()
|
/linux-6.3-rc2/drivers/md/bcache/ |
A 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() 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()
|
A D | writeback.h | 112 if (bio_op(bio) == REQ_OP_DISCARD) in should_writeback()
|
A D | io.c | 144 unsigned int threshold = op_is_write(bio_op(bio)) in bch_bbio_count_io_errors()
|
/linux-6.3-rc2/fs/f2fs/ |
A D | iostat.c | 244 if (op_is_write(bio_op(bio))) { in iostat_update_and_unbind_ctx()
|