Home
last modified time | relevance | path

Searched refs:op_is_write (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.1.9/drivers/block/
Dbrd.c265 if (op_is_write(op)) { in brd_do_bvec()
272 if (!op_is_write(op)) { in brd_do_bvec()
321 page_endio(page, op_is_write(op), err); in brd_rw_page()
Dloop.c1857 const bool write = op_is_write(req_op(rq)); in loop_handle_cmd()
/linux-6.1.9/include/linux/
Dblk_types.h482 static inline bool op_is_write(blk_opf_t op) in op_is_write() function
535 return op_is_write(op); in op_stat_group()
Dblk-mq.h221 #define rq_data_dir(rq) (op_is_write(req_op(rq)) ? WRITE : READ)
224 (op_is_write(req_op(rq)) ? DMA_TO_DEVICE : DMA_FROM_DEVICE)
Dbio.h47 (op_is_write(bio_op(bio)) ? WRITE : READ)
/linux-6.1.9/block/
Dblk-cgroup-rwstat.h68 else if (op_is_write(opf)) in blkg_rwstat_add()
Dblk-core.c490 if (op_is_write(bio_op(bio)) && bdev_read_only(bio->bi_bdev)) { in bio_check_ro()
940 part_stat_local_inc(bdev, in_flight[op_is_write(op)]); in bdev_start_io_acct()
982 part_stat_local_dec(bdev, in_flight[op_is_write(op)]); in bdev_end_io_acct()
Dblk-wbt.c677 else if (op_is_write(op)) in wbt_data_dir()
Dblk-map.c352 if (bio->bi_private && !op_is_write(bio_op(bio))) { in bio_invalidate_vmalloc_pages()
Dmq-deadline.c609 if (op_is_sync(opf) && !op_is_write(opf)) in dd_limit_depth()
Dblk-cgroup.c1941 if (op_is_write(bio->bi_opf)) in blk_cgroup_io_type()
Dblk-throttle.c2274 const bool rw = op_is_write(op); in throtl_track_latency()
/linux-6.1.9/drivers/md/bcache/
Dio.c144 unsigned int threshold = op_is_write(bio_op(bio)) in bch_bbio_count_io_errors()
Drequest.c378 op_is_write(bio_op(bio)))) in check_should_bypass()
732 s->write = op_is_write(bio_op(bio)); in search_alloc()
/linux-6.1.9/drivers/md/
Ddm-io.c421 if (num_regions > 1 && !op_is_write(opf)) { in sync_io()
454 if (num_regions > 1 && !op_is_write(opf)) { in async_io()
Ddm-kcopyd.c522 if (op_is_write(job->op)) in complete_io()
534 if (op_is_write(job->op)) in complete_io()
617 if (op_is_write(job->op)) in process_jobs()
Draid5.c1186 if (op_is_write(op)) { in ops_run_io()
1212 while (op_is_write(op) && rdev && in ops_run_io()
1253 bi->bi_end_io = op_is_write(op) in ops_run_io()
1276 if (!op_is_write(op) && in ops_run_io()
1303 if (should_defer && op_is_write(op)) in ops_run_io()
1316 BUG_ON(!op_is_write(op)); in ops_run_io()
1350 if (should_defer && op_is_write(op)) in ops_run_io()
1356 if (op_is_write(op)) in ops_run_io()
/linux-6.1.9/drivers/nvdimm/
Dpmem.c218 if (op_is_write(bio_op(bio))) in pmem_submit_bio()
247 if (op_is_write(op)) in pmem_rw_page()
258 page_endio(page, op_is_write(op), 0); in pmem_rw_page()
Dbtt.c1429 if (!op_is_write(op)) { in btt_do_bvec()
1472 (op_is_write(bio_op(bio))) ? "WRITE" : in btt_submit_bio()
1493 page_endio(page, op_is_write(op), 0); in btt_rw_page()
/linux-6.1.9/drivers/block/zram/
Dzram_drv.c597 page_endio(page, op_is_write(bio_op(bio)), in zram_page_end_io()
1555 if (!op_is_write(op)) { in zram_bvec_rw()
1569 if (!op_is_write(op)) in zram_bvec_rw()
1702 page_endio(page, op_is_write(op), 0); in zram_rw_page()
/linux-6.1.9/drivers/block/null_blk/
Dmain.c1254 op_is_write(req_op(rq)), sector, in null_handle_rq()
1281 op_is_write(bio_op(bio)), sector, in null_handle_bio()
/linux-6.1.9/drivers/block/drbd/
Ddrbd_req.c242 if (op_is_write(bio_op(req->master_bio)) && in drbd_req_complete()
/linux-6.1.9/kernel/trace/
Dblktrace.c235 what |= ddir_act[op_is_write(op) ? WRITE : READ]; in __blk_add_trace()
/linux-6.1.9/drivers/scsi/
Dscsi_lib.c1005 !op_is_write(req_op(rq)) && in scsi_cmd_needs_dma_drain()
/linux-6.1.9/drivers/ufs/core/
Dufshpb.c81 return op_is_write(req_op(scsi_cmd_to_rq(cmd))) || in ufshpb_is_write_or_discard()

12