| /linux-6.15/drivers/md/dm-vdo/ |
| H A D | vio.c | 174 blk_opf_t bi_opf, physical_block_number_t pbn) in vdo_set_bio_properties() argument 185 bio->bi_opf = bi_opf; in vdo_set_bio_properties() 195 blk_opf_t bi_opf, physical_block_number_t pbn) in vio_reset_bio() argument 198 callback, bi_opf, pbn); in vio_reset_bio() 202 blk_opf_t bi_opf, physical_block_number_t pbn) in vio_reset_bio_with_size() argument 209 bio_reset(bio, bio->bi_bdev, bi_opf); in vio_reset_bio_with_size() 210 vdo_set_bio_properties(bio, vio, callback, bi_opf, pbn); in vio_reset_bio_with_size() 294 description = (((vio->bio->bi_opf & REQ_FUA) == REQ_FUA) ? in vio_record_metadata_io_error() 297 } else if ((vio->bio->bi_opf & REQ_FUA) == REQ_FUA) { in vio_record_metadata_io_error() 485 if ((bio->bi_opf & REQ_PREFLUSH) != 0) in vdo_count_bios() [all …]
|
| H A D | vio.h | 124 blk_opf_t bi_opf, physical_block_number_t pbn); 127 blk_opf_t bi_opf, physical_block_number_t pbn); 129 blk_opf_t bi_opf, physical_block_number_t pbn);
|
| /linux-6.15/block/ |
| H A D | blk-merge.c | 122 split->bi_opf |= REQ_NOMERGE; in bio_submit_split() 200 bool is_atomic = bio->bi_opf & REQ_ATOMIC; in get_max_io_size() 348 if (bio->bi_opf & REQ_ATOMIC) in bio_split_rw_at() 355 if (bio->bi_opf & REQ_NOWAIT) in bio_split_rw_at() 752 WARN_ON_ONCE((bio->bi_opf & REQ_FAILFAST_MASK) && in blk_rq_set_mixed_merge() 753 (bio->bi_opf & REQ_FAILFAST_MASK) != ff); in blk_rq_set_mixed_merge() 754 bio->bi_opf |= ff; in blk_rq_set_mixed_merge() 761 if (bio->bi_opf & REQ_RAHEAD) in bio_failfast() 764 return bio->bi_opf & REQ_FAILFAST_MASK; in bio_failfast() 776 if (bio->bi_opf & REQ_RAHEAD) in blk_update_mixed_merge() [all …]
|
| H A D | blk-core.c | 338 if (bio->bi_opf & REQ_NOWAIT) { in __bio_queue_enter() 525 if (op_is_flush(bio->bi_opf) && !bio_sectors(bio)) in bio_check_ro() 565 current->comm, bio->bi_bdev, bio->bi_opf, in bio_check_eod() 619 bio->bi_opf |= REQ_NOMERGE; in blk_check_zone_append() 639 if ((bio->bi_opf & REQ_POLLED) && in __submit_bio() 789 if ((bio->bi_opf & REQ_NOWAIT) && !bdev_nowait(bdev)) in submit_bio_noacct() 807 if (op_is_flush(bio->bi_opf)) { in submit_bio_noacct() 812 bio->bi_opf &= ~(REQ_PREFLUSH | REQ_FUA); in submit_bio_noacct() 824 if (bio->bi_opf & REQ_ATOMIC) { in submit_bio_noacct() 1271 sizeof_field(struct bio, bi_opf)); in blk_dev_init()
|
| H A D | blk-throttle.h | 175 blkg_rwstat_add(&tg->stat_bytes, bio->bi_opf, in blk_should_throtl() 178 blkg_rwstat_add(&tg->stat_ios, bio->bi_opf, 1); in blk_should_throtl()
|
| H A D | blk-zoned.c | 717 if (WARN_ON_ONCE(bio->bi_opf & REQ_NOWAIT)) in blk_zone_wplug_handle_reset_or_finish() 718 bio->bi_opf &= ~REQ_NOWAIT; in blk_zone_wplug_handle_reset_or_finish() 803 if (bio->bi_opf & REQ_NOWAIT) { in disk_zone_wplug_add_bio() 805 bio->bi_opf &= ~REQ_NOWAIT; in disk_zone_wplug_add_bio() 961 bio->bi_opf &= ~REQ_OP_MASK; in blk_zone_wplug_prepare_bio() 962 bio->bi_opf |= REQ_OP_WRITE | REQ_NOMERGE; in blk_zone_wplug_prepare_bio() 1017 if (bio->bi_opf & REQ_NOWAIT) in blk_zone_wplug_handle_write() 1022 if (bio->bi_opf & REQ_NOWAIT) in blk_zone_wplug_handle_write() 1039 (bio->bi_opf & REQ_NOWAIT)) in blk_zone_wplug_handle_write() 1226 bio->bi_opf &= ~REQ_OP_MASK; in blk_zone_write_plug_bio_endio() [all …]
|
| H A D | fops.c | 78 bio.bi_opf |= REQ_ATOMIC; in __blkdev_direct_IO_simple() 89 bio.bi_opf |= REQ_NOWAIT; in __blkdev_direct_IO_simple() 232 bio->bi_opf |= REQ_NOWAIT; in __blkdev_direct_IO() 371 bio->bi_opf |= REQ_ATOMIC; in __blkdev_direct_IO_async() 374 bio->bi_opf |= REQ_NOWAIT; in __blkdev_direct_IO_async() 377 bio->bi_opf |= REQ_POLLED; in __blkdev_direct_IO_async()
|
| H A D | bio.c | 250 bio->bi_opf = opf; in bio_init() 308 bio->bi_opf = opf; in bio_reset() 818 if (bio->bi_opf & REQ_ALLOC_CACHE) in bio_put() 864 bio = bio_alloc_bioset(bdev, 0, bio_src->bi_opf, gfp, bs); in bio_alloc_clone() 895 bio_init(bio, bdev, bio_src->bi_io_vec, 0, bio_src->bi_opf); in bio_init_clone() 1296 bio->bi_opf |= REQ_SYNC; in submit_bio_wait() 1584 if (bio->bi_opf & REQ_ATOMIC) in bio_split() 1617 if (WARN_ON_ONCE(bio->bi_opf & REQ_ATOMIC && size)) in bio_trim()
|
| H A D | blk-mq-sched.h | 33 return !(bio->bi_opf & REQ_NOMERGE_FLAGS); in bio_mergeable()
|
| /linux-6.15/fs/btrfs/ |
| H A D | bio.c | 313 else if (!(bio->bi_opf & REQ_RAHEAD)) in btrfs_log_dev_io_error() 315 if (bio->bi_opf & REQ_PREFLUSH) in btrfs_log_dev_io_error() 322 if (bio->bi_opf & REQ_META) in btrfs_end_io_wq() 444 __func__, bio_op(bio), bio->bi_opf, bio->bi_iter.bi_sector, in btrfs_submit_dev_bio() 456 if (bio->bi_opf & REQ_BTRFS_CGROUP_PUNT) in btrfs_submit_dev_bio() 517 if (bbio->bio.bi_opf & REQ_META) in btrfs_bio_csum() 585 bio->bi_opf |= REQ_BTRFS_CGROUP_PUNT; in run_one_async_done() 611 if (op_is_sync(bbio->bio.bi_opf)) in should_async_write() 615 if ((bbio->bio.bi_opf & REQ_META) && btrfs_is_zoned(bbio->fs_info)) in should_async_write() 724 bio->bi_opf &= ~REQ_OP_WRITE; in btrfs_submit_chunk() [all …]
|
| /linux-6.15/drivers/md/bcache/ |
| H A D | writeback.h | 123 return (op_is_sync(bio->bi_opf) || in should_writeback() 124 bio->bi_opf & (REQ_META|REQ_PRIO) || in should_writeback()
|
| H A D | request.c | 202 bio->bi_opf &= ~(REQ_PREFLUSH|REQ_FUA); in CLOSURE_CALLBACK() 247 n->bi_opf = REQ_OP_WRITE; in CLOSURE_CALLBACK() 405 if ((bio->bi_opf & (REQ_RAHEAD|REQ_BACKGROUND))) { in check_should_bypass() 406 if (!(bio->bi_opf & (REQ_META|REQ_PRIO)) && in check_should_bypass() 667 bio->bi_opf & REQ_PREFLUSH)) { in backing_request_endio() 758 s->iop.flush_journal = op_is_flush(bio->bi_opf); in search_alloc() 1033 if (bio->bi_opf & REQ_PREFLUSH) { in cached_dev_write()
|
| /linux-6.15/include/trace/events/ |
| H A D | bcache.h | 31 blk_fill_rwbs(__entry->rwbs, bio->bi_opf); 105 blk_fill_rwbs(__entry->rwbs, bio->bi_opf); 140 blk_fill_rwbs(__entry->rwbs, bio->bi_opf); 171 blk_fill_rwbs(__entry->rwbs, bio->bi_opf); 241 blk_fill_rwbs(__entry->rwbs, bio->bi_opf);
|
| H A D | block.h | 326 blk_fill_rwbs(__entry->rwbs, bio->bi_opf); 353 blk_fill_rwbs(__entry->rwbs, bio->bi_opf); 510 blk_fill_rwbs(__entry->rwbs, bio->bi_opf); 551 blk_fill_rwbs(__entry->rwbs, bio->bi_opf);
|
| /linux-6.15/drivers/md/ |
| H A D | dm.c | 634 clone->bi_opf &= ~REQ_DM_POLL_LIST; in alloc_tio() 901 (bio->bi_opf & REQ_POLLED)); in dm_handle_requeue() 908 if (bio->bi_opf & REQ_POLLED) { in dm_handle_requeue() 982 bio->bi_opf &= ~REQ_PREFLUSH; in __dm_io_complete() 1706 bio->bi_opf |= REQ_DM_POLL_LIST; in dm_queue_poll_io() 1863 clone->bi_opf &= ~REQ_OP_MASK; in __send_zone_reset_all_emulated() 1983 if (bio->bi_opf & REQ_PREFLUSH) { in dm_split_and_process_bio() 1998 if (bio->bi_opf & REQ_PREFLUSH) { in dm_split_and_process_bio() 2057 if (bio->bi_opf & REQ_NOWAIT) in dm_submit_bio() 2106 bio->bi_opf &= ~REQ_DM_POLL_LIST; in dm_poll_bio() [all …]
|
| H A D | dm-io.c | 483 if ((io_req->bi_opf & REQ_OP_MASK) == REQ_OP_READ) { in dp_init() 508 if (num_regions > 1 && !op_is_write(io_req->bi_opf)) { in dm_io() 519 io_req->bi_opf, &dp, sync_error_bits, ioprio); in dm_io() 521 async_io(io_req->client, num_regions, where, io_req->bi_opf, &dp, in dm_io()
|
| H A D | dm-raid1.c | 268 .bi_opf = REQ_OP_WRITE | REQ_PREFLUSH | REQ_SYNC, in mirror_flush() 547 .bi_opf = REQ_OP_READ, in read_async_bio() 659 blk_opf_t op_flags = bio->bi_opf & (REQ_FUA | REQ_PREFLUSH | REQ_ATOMIC); in do_write() 661 .bi_opf = REQ_OP_WRITE | op_flags, in do_write() 670 io_req.bi_opf = REQ_OP_DISCARD | op_flags; in do_write() 708 if ((bio->bi_opf & REQ_PREFLUSH) || in do_writes() 1222 if (bio->bi_opf & REQ_RAHEAD) in mirror_map() 1259 if (!(bio->bi_opf & REQ_PREFLUSH) && in mirror_end_io() 1268 if (bio->bi_opf & REQ_RAHEAD) in mirror_end_io()
|
| H A D | dm-zero.c | 42 if (bio->bi_opf & REQ_RAHEAD) { in zero_map()
|
| H A D | raid1.c | 1336 bio->bi_opf & REQ_NOWAIT)) { in raid1_read_request() 1442 if (bio->bi_opf & REQ_NOWAIT) in wait_blocked_rdev() 1658 mbio->bi_opf |= MD_FAILFAST; in raid1_write_request() 2379 wbio->bi_opf = REQ_OP_WRITE; in sync_request_write() 2381 wbio->bi_opf |= MD_FAILFAST; in sync_request_write() 2540 wbio->bi_opf = REQ_OP_WRITE; in narrow_write_error() 2886 bio->bi_opf = REQ_OP_WRITE; in raid1_sync_request() 2913 bio->bi_opf = REQ_OP_READ; in raid1_sync_request() 2925 bio->bi_opf = REQ_OP_WRITE; in raid1_sync_request() 2935 bio->bi_opf |= MD_FAILFAST; in raid1_sync_request() [all …]
|
| H A D | raid10.c | 1131 if (bio->bi_opf & REQ_NOWAIT) { in regular_request_wait() 1269 mbio->bi_opf |= MD_FAILFAST; in raid10_write_one_disk() 2432 tbio->bi_opf |= MD_FAILFAST; in sync_request_write() 2827 wbio->bi_opf = REQ_OP_WRITE; in narrow_write_error() 3433 bio->bi_opf = REQ_OP_READ; in raid10_sync_request() 3479 bio->bi_opf = REQ_OP_WRITE; in raid10_sync_request() 3634 bio->bi_opf = REQ_OP_READ; in raid10_sync_request() 3636 bio->bi_opf |= MD_FAILFAST; in raid10_sync_request() 3655 bio->bi_opf = REQ_OP_WRITE; in raid10_sync_request() 3657 bio->bi_opf |= MD_FAILFAST; in raid10_sync_request() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | dm-io.h | 62 blk_opf_t bi_opf; /* Request type and flags */ member
|
| H A D | blk_types.h | 217 blk_opf_t bi_opf; /* bottom bits REQ_OP, top bits member 433 return bio->bi_opf & REQ_OP_MASK; in bio_op()
|
| /linux-6.15/drivers/block/ |
| H A D | brd.c | 251 if (unlikely(op_is_discard(bio->bi_opf))) { in brd_submit_bio() 266 bio->bi_opf, sector); in brd_submit_bio() 268 if (err == -ENOMEM && bio->bi_opf & REQ_NOWAIT) { in brd_submit_bio()
|
| /linux-6.15/fs/xfs/ |
| H A D | xfs_bio_io.c | 42 prev->bi_opf, GFP_KERNEL); in xfs_rw_bdev()
|
| /linux-6.15/fs/bcachefs/ |
| H A D | io_write.c | 487 n->bio.bi_opf = wbio->bio.bi_opf; in bch2_submit_wbio_replicas() 812 wbio->bio.bi_opf = src->bi_opf; in bch2_write_bio_alloc() 1163 dst->bi_opf = src->bi_opf; in bch2_write_extent() 1394 bio->bi_opf = op->wbio.bio.bi_opf; in bch2_nocow_write() 1404 bio->bi_opf |= REQ_OP_WRITE; in bch2_nocow_write() 1554 bio->bi_opf |= REQ_OP_WRITE; in __bch2_write()
|