/linux/Documentation/block/ |
H A D | writeback_cache_control.rst | 23 The REQ_PREFLUSH flag can be OR ed into the r/w flags of a bio submitted from 27 storage before the flagged bio starts. In addition the REQ_PREFLUSH flag can be 44 Filesystems can simply set the REQ_PREFLUSH and REQ_FUA bits and do not have to 46 the Forced Unit Access is implemented. The REQ_PREFLUSH and REQ_FUA flags 53 support required, the block layer completes empty REQ_PREFLUSH requests before 54 entering the driver and strips off the REQ_PREFLUSH and REQ_FUA bits from 73 For bio based drivers the REQ_PREFLUSH and REQ_FUA bit are simply passed on to 83 REQ_PREFLUSH bit set. 88 When the BLK_FEAT_WRITE_CACHE flag is set, REQ_OP_WRITE | REQ_PREFLUSH requests
|
/linux/include/linux/ |
H A D | blk_types.h | 403 #define REQ_PREFLUSH (__force blk_opf_t)(1ULL << __REQ_PREFLUSH) macro 420 (REQ_NOMERGE | REQ_PREFLUSH | REQ_FUA) 447 return op & (REQ_FUA | REQ_PREFLUSH); in op_is_flush() 458 (op & (REQ_SYNC | REQ_FUA | REQ_PREFLUSH)); in op_is_sync()
|
/linux/block/ |
H A D | blk-flush.c | 317 flush_rq->cmd_flags = REQ_OP_FLUSH | REQ_PREFLUSH; in blk_kick_flush() 399 if (rq->cmd_flags & REQ_PREFLUSH) in blk_insert_flush() 409 rq->cmd_flags &= ~REQ_PREFLUSH; in blk_insert_flush() 472 bio_init(&bio, bdev, NULL, 0, REQ_OP_WRITE | REQ_PREFLUSH); in blkdev_issue_flush()
|
/linux/drivers/md/dm-vdo/ |
H A D | vio.c | 284 } else if ((vio->bio->bi_opf & REQ_PREFLUSH) == REQ_PREFLUSH) { in vio_record_metadata_io_error() 447 if (((bio->bi_opf & REQ_PREFLUSH) != 0) && (bio->bi_iter.bi_size == 0)) { in vdo_count_bios() 472 if ((bio->bi_opf & REQ_PREFLUSH) != 0) in vdo_count_bios()
|
H A D | io-submitter.h | 44 REQ_OP_WRITE | REQ_PREFLUSH, NULL); in vdo_submit_flush_vio()
|
H A D | vdo.c | 838 REQ_OP_WRITE | REQ_PREFLUSH); in vdo_synchronous_flush() 980 REQ_OP_WRITE | REQ_PREFLUSH | REQ_FUA); in vdo_save_components()
|
/linux/Documentation/admin-guide/device-mapper/ |
H A D | log-writes.rst | 18 next REQ_PREFLUSH request. This is to make it easier for userspace to replay 23 Once we see a REQ_PREFLUSH request we splice this list onto the request and once 25 completed WRITEs, at the time the REQ_PREFLUSH is issued, are added in order to
|
/linux/drivers/block/rnbd/ |
H A D | rnbd-proto.h | 231 bio_opf = REQ_OP_WRITE | REQ_PREFLUSH; in rnbd_to_bio_flags()
|
/linux/drivers/nvdimm/ |
H A D | nd_virtio.c | 118 REQ_OP_WRITE | REQ_PREFLUSH, in async_pmem_flush()
|
/linux/drivers/md/ |
H A D | dm-raid1.c | 268 .bi_opf = REQ_OP_WRITE | REQ_PREFLUSH | REQ_SYNC, in mirror_flush() 659 blk_opf_t op_flags = bio->bi_opf & (REQ_FUA | REQ_PREFLUSH); in do_write() 708 if ((bio->bi_opf & REQ_PREFLUSH) || in do_writes() 1259 if (!(bio->bi_opf & REQ_PREFLUSH) && in mirror_end_io()
|
H A D | dm-region-hash.c | 406 if (bio->bi_opf & REQ_PREFLUSH) { in dm_rh_mark_nosync() 534 if (bio->bi_opf & REQ_PREFLUSH || bio_op(bio) == REQ_OP_DISCARD) in dm_rh_inc_pending()
|
H A D | dm-snap-persistent.c | 742 if (ps->valid && area_io(ps, REQ_OP_WRITE | REQ_PREFLUSH | REQ_FUA | in persistent_commit_exception() 820 r = area_io(ps, REQ_OP_WRITE | REQ_PREFLUSH | REQ_FUA); in persistent_commit_merge()
|
H A D | dm-delay.c | 358 if (unlikely(bio->bi_opf & REQ_PREFLUSH)) in delay_map()
|
H A D | dm-ebs-target.c | 198 else if (bio_op(bio) == REQ_OP_WRITE && !(bio->bi_opf & REQ_PREFLUSH)) { in __ebs_process_bios()
|
H A D | dm-stripe.c | 278 if (bio->bi_opf & REQ_PREFLUSH) { in stripe_map()
|
H A D | dm-io.c | 400 if (where[i].count || (opf & REQ_PREFLUSH)) in dispatch_io()
|
H A D | raid5-cache.c | 648 io->split_bio->bi_opf |= REQ_PREFLUSH; in r5l_do_submit_io() 655 io->current_bio->bi_opf |= REQ_PREFLUSH; in r5l_do_submit_io() 1114 bio->bi_opf &= ~REQ_PREFLUSH; in r5l_handle_flush_request() 1308 REQ_OP_WRITE | REQ_PREFLUSH); in r5l_flush_stripe_to_raid()
|
H A D | raid5-ppl.c | 631 REQ_OP_WRITE | REQ_PREFLUSH, in ppl_do_flush() 686 bio->bi_opf &= ~REQ_PREFLUSH; in ppl_handle_flush_request()
|
H A D | dm.c | 493 return ((bio->bi_opf & REQ_PREFLUSH) && bio->bi_iter.bi_size); in bio_is_flush_with_data() 982 bio->bi_opf &= ~REQ_PREFLUSH; in __dm_io_complete() 1551 REQ_OP_WRITE | REQ_PREFLUSH | REQ_SYNC); in __send_empty_flush() 1983 if (bio->bi_opf & REQ_PREFLUSH) { in dm_split_and_process_bio()
|
H A D | dm-clone-target.c | 1262 if ((bio->bi_opf & REQ_PREFLUSH) && dest_dev_flushed) { in process_deferred_flush_bios() 1331 if (bio->bi_opf & REQ_PREFLUSH) { in clone_map()
|
H A D | dm-log.c | 314 lc->io_req.bi_opf = REQ_OP_WRITE | REQ_PREFLUSH; in flush_header()
|
H A D | raid0.c | 591 if (unlikely(bio->bi_opf & REQ_PREFLUSH) in raid0_make_request()
|
/linux/drivers/block/xen-blkback/ |
H A D | blkback.c | 1333 operation_flags = REQ_PREFLUSH; in dispatch_rw_block_io() 1345 if (unlikely(nseg == 0 && operation_flags != REQ_PREFLUSH) || in dispatch_rw_block_io() 1448 BUG_ON(operation_flags != REQ_PREFLUSH); in dispatch_rw_block_io()
|
/linux/drivers/nvme/target/ |
H A D | io-cmd-bdev.c | 348 ARRAY_SIZE(req->inline_bvec), REQ_OP_WRITE | REQ_PREFLUSH); in nvmet_bdev_execute_flush()
|
/linux/fs/gfs2/ |
H A D | recovery.c | 271 REQ_PREFLUSH | REQ_FUA | REQ_META | REQ_SYNC); in clean_journal()
|