Home
last modified time | relevance | path

Searched refs:bio_op (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.3-rc2/drivers/md/
A Ddm-ebs-target.c196 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 Ddm-zone.c131 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 Ddm-zoned-target.c90 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 Ddm-zero.c39 switch (bio_op(bio)) { in zero_map()
A Ddm-stripe.c283 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 Ddm-flakey.c333 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 Ddm.c515 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 Ddm-raid1.c630 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 Ddm-region-hash.c411 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 Dmd-linear.c244 if (unlikely((bio_op(bio) == REQ_OP_DISCARD) && in linear_make_request()
/linux-6.3-rc2/include/linux/
A Dbio.h49 (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 Dblk_types.h470 static inline enum req_op bio_op(const struct bio *bio) in bio_op() function
/linux-6.3-rc2/block/
A Dblk-core.c502 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 Dbio-integrity.c208 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 Dblk-wbt.c617 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 Dbio.c639 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 Dbounce.c175 switch (bio_op(bio)) { in bounce_clone_bio()
A Dblk-merge.c361 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 Dblk-mq.h316 bdev_op_is_zoned_write(bio->bi_bdev, bio_op(bio))) in blk_mq_plug()
/linux-6.3-rc2/fs/btrfs/
A Dbio.c326 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 Ddrbd_req.c34 | (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 Drequest.c373 (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 Dwriteback.h112 if (bio_op(bio) == REQ_OP_DISCARD) in should_writeback()
A Dio.c144 unsigned int threshold = op_is_write(bio_op(bio)) in bch_bbio_count_io_errors()
/linux-6.3-rc2/fs/f2fs/
A Diostat.c244 if (op_is_write(bio_op(bio))) { in iostat_update_and_unbind_ctx()

Completed in 46 milliseconds

123