Searched refs:op_is_write (Results 1 – 25 of 25) sorted by relevance
479 static inline bool op_is_write(blk_opf_t op) in op_is_write() function532 return op_is_write(op); in op_stat_group()
208 #define rq_data_dir(rq) (op_is_write(req_op(rq)) ? WRITE : READ)211 (op_is_write(req_op(rq)) ? DMA_TO_DEVICE : DMA_FROM_DEVICE)
49 (op_is_write(bio_op(bio)) ? WRITE : READ)
68 else if (op_is_write(opf)) in blkg_rwstat_add()
501 if (op_is_write(bio_op(bio)) && bdev_read_only(bio->bi_bdev)) { in bio_check_ro()958 part_stat_local_inc(bdev, in_flight[op_is_write(op)]); in bdev_start_io_acct()989 part_stat_local_dec(bdev, in_flight[op_is_write(op)]); in bdev_end_io_acct()
355 if (bio->bi_private && !op_is_write(bio_op(bio))) { in bio_invalidate_vmalloc_pages()
757 else if (op_is_write(op)) in wbt_data_dir()
633 if (op_is_sync(opf) && !op_is_write(opf)) in dd_limit_depth()
2083 if (op_is_write(bio->bi_opf)) in blk_cgroup_io_type()
2285 const bool rw = op_is_write(op); in throtl_track_latency()
699 if (op_is_sync(opf) && !op_is_write(opf)) { in bfq_limit_depth()
217 if (op_is_write(opf)) { in brd_do_bvec()230 if (!op_is_write(opf)) { in brd_do_bvec()
1892 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()
378 op_is_write(bio_op(bio)))) in check_should_bypass()732 s->write = op_is_write(bio_op(bio)); in search_alloc()
433 if (num_regions > 1 && !op_is_write(opf)) { in sync_io()466 if (num_regions > 1 && !op_is_write(opf)) { in async_io()
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()
1193 if (op_is_write(op)) { in ops_run_io()1219 while (op_is_write(op) && rdev && in ops_run_io()1260 bi->bi_end_io = op_is_write(op) in ops_run_io()1283 if (!op_is_write(op) && in ops_run_io()1310 if (should_defer && op_is_write(op)) in ops_run_io()1323 BUG_ON(!op_is_write(op)); in ops_run_io()1357 if (should_defer && op_is_write(op)) in ops_run_io()1363 if (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()
1429 if (!op_is_write(op)) { in btt_do_bvec()1472 (op_is_write(bio_op(bio))) ? "WRITE" : in btt_submit_bio()
1288 op_is_write(req_op(rq)), sector, in null_handle_rq()1315 op_is_write(bio_op(bio)), sector, in null_handle_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()
1000 !op_is_write(req_op(rq)) && in scsi_cmd_needs_dma_drain()