Searched refs:op_is_write (Results 1 – 25 of 28) sorted by relevance
12
436 static inline bool op_is_write(blk_opf_t op) in op_is_write() function489 return op_is_write(op); in op_stat_group()
227 #define rq_data_dir(rq) (op_is_write(req_op(rq)) ? WRITE : READ)230 (op_is_write(req_op(rq)) ? DMA_TO_DEVICE : DMA_FROM_DEVICE)
47 (op_is_write(bio_op(bio)) ? WRITE : READ)
68 else if (op_is_write(opf)) in blkg_rwstat_add()
524 if (op_is_write(bio_op(bio)) && bdev_read_only(bio->bi_bdev)) { in bio_check_ro()1035 part_stat_local_inc(bdev, in_flight[op_is_write(op)]); in bdev_start_io_acct()1066 part_stat_local_dec(bdev, in_flight[op_is_write(op)]); in bdev_end_io_acct()
122 if (op_is_write(req_op(rq))) in blk_rq_integrity_map_user()
298 if (op_is_write(bio_op(bio)) && lim->zone_write_granularity) in bio_split_alignment()792 in_flight[op_is_write(req_op(req))]); in blk_account_io_merge_request()
303 if (bio->bi_private && !op_is_write(bio_op(bio))) { in bio_invalidate_vmalloc_pages()
746 else if (op_is_write(op)) in wbt_data_dir()
513 if (op_is_sync(opf) && !op_is_write(opf)) in dd_limit_depth()
2201 if (op_is_write(bio->bi_opf)) in blk_cgroup_io_type()
1053 in_flight[op_is_write(req_op(req))]); in blk_account_io_done()1113 part_stat_local_inc(req->part, in_flight[op_is_write(req_op(req))]); in blk_account_io_start()
199 if (op_is_write(opf)) { in brd_do_bvec()212 if (!op_is_write(opf)) { in brd_do_bvec()
1864 const bool write = op_is_write(req_op(rq)); in loop_handle_cmd()
144 unsigned int threshold = op_is_write(bio_op(bio)) in bch_bbio_count_io_errors()
392 op_is_write(bio_op(bio)))) in check_should_bypass()746 s->write = op_is_write(bio_op(bio)); in search_alloc()
528 if (op_is_write(job->op)) in complete_io()540 if (op_is_write(job->op)) in complete_io()623 if (op_is_write(job->op)) in process_jobs()
508 if (num_regions > 1 && !op_is_write(io_req->bi_opf)) { in dm_io()
1186 if (op_is_write(op)) { in ops_run_io()1211 while (op_is_write(op) && rdev && in ops_run_io()1250 bi->bi_end_io = op_is_write(op) in ops_run_io()1273 if (!op_is_write(op) && in ops_run_io()1297 if (should_defer && op_is_write(op)) in ops_run_io()1310 BUG_ON(!op_is_write(op)); in ops_run_io()1341 if (should_defer && op_is_write(op)) in ops_run_io()
245 if (op_is_write(bio_op(bio))) { in iostat_update_and_unbind_ctx()
219 if (op_is_write(bio_op(bio))) in pmem_submit_bio()
1425 if (!op_is_write(op)) { in btt_do_bvec()1468 (op_is_write(bio_op(bio))) ? "WRITE" : in btt_submit_bio()
243 if (op_is_write(bio_op(req->master_bio)) && in drbd_req_complete()
235 what |= ddir_act[op_is_write(op) ? WRITE : READ]; in __blk_add_trace()
1291 op_is_write(req_op(rq)), sector, in null_handle_data_transfer()