/linux-master/drivers/md/ |
H A D | dm-mpath.c | 12 #include "dm-bio-record.h" 240 * bio-based doesn't support any direct scsi_dh management; 286 static struct dm_mpath_io *get_mpio_from_bio(struct bio *bio) argument 288 return dm_per_bio_data(bio, multipath_per_bio_data_size()); 293 /* dm_bio_details is immediately after the dm_mpath_io in bio's per-bio-data */ 298 static void multipath_init_per_bio_data(struct bio *bio, struct dm_mpath_io **mpio_p) argument 300 struct dm_mpath_io *mpio = get_mpio_from_bio(bio); 595 __multipath_queue_bio(struct multipath *m, struct bio *bio) argument 603 multipath_queue_bio(struct multipath *m, struct bio *bio) argument 612 __map_bio(struct multipath *m, struct bio *bio) argument 640 __multipath_map_bio(struct multipath *m, struct bio *bio, struct dm_mpath_io *mpio) argument 671 multipath_map_bio(struct dm_target *ti, struct bio *bio) argument 692 struct bio *bio; local 716 dm_bio_restore(get_bio_details_from_mpio(mpio), bio); local [all...] |
H A D | dm-bio-prison-v1.c | 9 #include "dm-bio-prison-v1.h" 10 #include "dm-bio-prison-v2.h" 88 struct bio *holder, 140 struct bio *inmate, 177 struct bio *inmate, 193 struct bio *inmate, 266 struct bio *bio; local 271 while ((bio = bio_list_pop(&bios))) { 272 bio [all...] |
H A D | dm-era-target.c | 1217 static dm_block_t get_block(struct era *era, struct bio *bio) argument 1219 sector_t block_nr = bio->bi_iter.bi_sector; 1229 static void remap_to_origin(struct era *era, struct bio *bio) argument 1231 bio_set_dev(bio, era->origin_dev->bdev); 1265 struct bio *bio; local 1282 while ((bio = bio_list_pop(&deferred_bios))) { 1284 get_block(era, bio)); 1367 defer_bio(struct era *era, struct bio *bio) argument 1561 era_map(struct dm_target *ti, struct bio *bio) argument [all...] |
H A D | dm-zoned.h | 45 #define dmz_bio_block(bio) dmz_sect2blk((bio)->bi_iter.bi_sector) 46 #define dmz_bio_blocks(bio) dmz_sect2blk(bio_sectors(bio)) 83 #define dmz_bio_chunk(zmd, bio) ((bio)->bi_iter.bi_sector >> \
|
H A D | dm-integrity.c | 10 #include "dm-bio-record.h" 1562 struct bio *bio; local 1566 bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); 1567 bio_list_add(&ic->flush_bio_list, bio); 1573 static void do_endio(struct dm_integrity_c *ic, struct bio *bio) argument 1578 if (unlikely(r) && !bio->bi_status) 1579 bio->bi_status = errno_to_blk_status(r); 1580 if (unlikely(ic->synchronous_mode) && bio_op(bio) 1594 struct bio *bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); local 1606 struct bio *bio; local 1627 integrity_end_io(struct bio *bio) argument 1696 struct bio *bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); local 1784 struct bio *bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); local 1916 dm_integrity_map(struct dm_target *ti, struct bio *bio) argument 2016 __journal_read_write(struct dm_integrity_io *dio, struct bio *bio, unsigned int journal_section, unsigned int journal_entry) argument 2173 struct bio *bio = dm_bio_from_per_bio_data(dio, sizeof(struct dm_integrity_io)); local 2875 struct bio *bio; local 2929 struct bio *bio; local [all...] |
/linux-master/drivers/md/bcache/ |
H A D | super.c | 279 static void write_bdev_super_endio(struct bio *bio) argument 281 struct cached_dev *dc = bio->bi_private; 283 if (bio->bi_status) 284 bch_count_backing_io_errors(dc, bio); 290 struct bio *bio) 294 bio->bi_opf = REQ_OP_WRITE | REQ_SYNC | REQ_META; 295 bio->bi_iter.bi_sector = SB_SECTOR; 296 __bio_add_page(bio, virt_to_pag 289 __write_super(struct cache_sb *sb, struct cache_sb_disk *out, struct bio *bio) argument 340 struct bio *bio = &dc->sb_bio; local 356 write_super_endio(struct bio *bio) argument 377 struct bio *bio = &ca->sb_bio; local 400 uuid_endio(struct bio *bio) argument 430 struct bio *bio = bch_bbio_alloc(c); local 581 prio_endio(struct bio *bio) argument 593 struct bio *bio = bch_bbio_alloc(ca->set); local [all...] |
/linux-master/include/linux/ |
H A D | blkdev.h | 17 #include <linux/bio.h> 824 void submit_bio_noacct(struct bio *bio); 825 struct bio *bio_split_to_limits(struct bio *bio); 841 int bio_poll(struct bio *bio, struct io_comp_batch *iob, unsigned int flags); 853 static inline unsigned int bio_zone_no(struct bio *bio) argument 858 bio_zone_is_seq(struct bio *bio) argument 1473 bio_end_io_acct(struct bio *bio, unsigned long start_time) argument [all...] |
/linux-master/fs/bcachefs/ |
H A D | checksum.c | 249 struct nonce nonce, struct bio *bio, 268 __bio_for_each_segment(bv, bio, *iter, *iter) { 275 __bio_for_each_bvec(bv, bio, *iter, *iter) 291 __bio_for_each_segment(bv, bio, *iter, *iter) { 298 __bio_for_each_bvec(bv, bio, *iter, *iter) 314 struct nonce nonce, struct bio *bio) 316 struct bvec_iter iter = bio->bi_iter; 318 return __bch2_checksum_bio(c, type, nonce, bio, 248 __bch2_checksum_bio(struct bch_fs *c, unsigned type, struct nonce nonce, struct bio *bio, struct bvec_iter *iter) argument 313 bch2_checksum_bio(struct bch_fs *c, unsigned type, struct nonce nonce, struct bio *bio) argument 321 __bch2_encrypt_bio(struct bch_fs *c, unsigned type, struct nonce nonce, struct bio *bio) argument 382 bch2_rechecksum_bio(struct bch_fs *c, struct bio *bio, struct bversion version, struct bch_extent_crc_unpacked crc_old, struct bch_extent_crc_unpacked *crc_a, struct bch_extent_crc_unpacked *crc_b, unsigned len_a, unsigned len_b, unsigned new_csum_type) argument [all...] |
H A D | btree_node_scan.c | 122 struct bio *bio, struct btree_node *bn, u64 offset) 126 bio_reset(bio, ca->disk_sb.bdev, REQ_OP_READ); 127 bio->bi_iter.bi_sector = offset; 128 bch2_bio_map(bio, bn, PAGE_SIZE); 130 submit_bio_wait(bio); 131 if (bch2_dev_io_err_on(bio->bi_status, ca, BCH_MEMBER_ERROR_read, 133 offset, bch2_blk_status_to_str(bio->bi_status))) 189 struct bio *bio local 121 try_read_btree_node(struct find_btree_nodes *f, struct bch_dev *ca, struct bio *bio, struct btree_node *bn, u64 offset) argument [all...] |
H A D | journal_types.h | 163 struct bio bio; member in struct:journal_bio 325 struct journal_bio *bio[JOURNAL_BUF_NR]; member in struct:journal_device
|
H A D | trace.h | 180 DECLARE_EVENT_CLASS(bio, 181 TP_PROTO(struct bio *bio), 182 TP_ARGS(bio), 192 __entry->dev = bio->bi_bdev ? bio_dev(bio) : 0; 193 __entry->sector = bio->bi_iter.bi_sector; 194 __entry->nr_sector = bio->bi_iter.bi_size >> 9; 195 blk_fill_rwbs(__entry->rwbs, bio->bi_opf); 225 DEFINE_EVENT(bio, read_promot [all...] |
/linux-master/block/ |
H A D | blk-flush.c | 56 * complete. The first completion updates the contained bio but doesn't 57 * finish it so that the bio submitter is notified only after the whole 62 * bio attached to it, which is guaranteed as they aren't allowed to be 68 #include <linux/bio.h> 128 * After flush data completion, @rq->bio is %NULL but we need to 129 * complete the bio again. @rq->biotail is guaranteed to equal the 130 * original @rq->bio. Restore it. 132 rq->bio = rq->biotail; 404 WARN_ON_ONCE(rq->bio != rq->biotail); 471 struct bio bi local [all...] |
H A D | blk-mq.h | 42 void blk_mq_submit_bio(struct bio *bio); 370 * @bio : the bio being submitted by the caller context 383 * Return current->plug if the bio can be plugged and NULL otherwise 385 static inline struct blk_plug *blk_mq_plug( struct bio *bio) argument 389 bdev_op_is_zoned_write(bio->bi_bdev, bio_op(bio)))
|
/linux-master/drivers/md/dm-vdo/ |
H A D | flush.c | 49 /* The rotor for selecting the bio queue for submitting flush bios */ 51 /* The number of flushes submitted to the current bio queue */ 388 * @bio: The bio containing an empty flush request. 390 * This is called when we receive an empty flush bio from the block layer, and before acknowledging 391 * a non-empty bio with the FUA flag set. 393 void vdo_launch_flush(struct vdo *vdo, struct bio *bio) argument 408 /* We have a new bio to start. Add it to the list. */ 409 bio_list_add(&flusher->waiting_flush_bios, bio); 465 struct bio *bio; local [all...] |
H A D | types.h | 9 #include <linux/bio.h> 361 * A wrapper for a bio. All I/O to the storage below a vdo is conducted via vios. 367 /* The bio zone in which I/O should be processed */ 382 /* The VDO-owned bio to use for all IO for this vio */ 383 struct bio *bio; member in struct:vio 387 * the first-enqueued vio. The other vios are found via their bio entries in this list, and
|
/linux-master/drivers/nvme/host/ |
H A D | ioctl.c | 121 struct bio *bio = NULL; local 144 bio = req->bio; 146 bio_set_dev(bio, bdev); 148 ret = bio_integrity_map_user(bio, meta_buffer, meta_len, 159 if (bio) 160 blk_rq_unmap_user(bio); 174 struct bio *bio; local 392 struct bio *bio; member in struct:nvme_uring_cmd_pdu [all...] |
/linux-master/drivers/block/aoe/ |
H A D | aoecmd.c | 296 skb_fillup(struct sk_buff *skb, struct bio *bio, struct bvec_iter iter) argument 301 __bio_for_each_segment(bv, bio, iter, iter) 351 if (f->buf && bio_data_dir(f->buf->bio) == WRITE) { 352 skb_fillup(skb, f->buf->bio, f->iter); 388 bio_advance_iter(buf->bio, &buf->iter, f->iter.bi_size); 825 bufinit(struct buf *buf, struct request *rq, struct bio *bio) argument 829 buf->bio = bio; 840 struct bio *bio; local 1013 bvcpy(struct sk_buff *skb, struct bio *bio, struct bvec_iter iter, long cnt) argument 1031 struct bio *bio; local [all...] |
H A D | aoe.h | 109 struct bio *bio; member in struct:buf 183 struct bio *nxbio;
|
/linux-master/kernel/power/ |
H A D | swap.c | 20 #include <linux/bio.h> 246 static void hib_end_io(struct bio *bio) argument 248 struct hib_bio_batch *hb = bio->bi_private; 249 struct page *page = bio_first_page_all(bio); 251 if (bio->bi_status) { 253 MAJOR(bio_dev(bio)), MINOR(bio_dev(bio)), 254 (unsigned long long)bio->bi_iter.bi_sector); 257 if (bio_data_dir(bio) 275 struct bio *bio; local [all...] |
/linux-master/fs/btrfs/ |
H A D | scrub.c | 788 int sector_nr = calc_sector_number(stripe, bio_first_bvec_all(&bbio->bio)); 794 bio_for_each_bvec_all(bvec, &bbio->bio, i) 797 if (bbio->bio.bi_status) { 806 bio_put(&bbio->bio); 836 /* The current sector cannot be merged, submit the bio. */ 838 bbio->bio.bi_iter.bi_size >= blocksize)) { 839 ASSERT(bbio->bio.bi_iter.bi_size); 850 bbio->bio.bi_iter.bi_sector = (stripe->logical + 854 ret = bio_add_page(&bbio->bio, page, fs_info->sectorsize, pgoff); 858 ASSERT(bbio->bio 1877 raid56_scrub_wait_endio(struct bio *bio) argument 1935 struct bio *bio; local 2757 struct bio bio; local [all...] |
H A D | compression.c | 7 #include <linux/bio.h> 29 #include "bio.h" 267 blk_status_t status = bbio->bio.bi_status; 274 bio_put(&bbio->bio); 288 const int error = blk_status_to_errno(cb->bbio.bio.bi_status); 320 cb->bbio.bio.bi_status == BLK_STS_OK); 327 bio_put(&cb->bbio.bio); 347 struct bio *bio = &cb->bbio.bio; local [all...] |
/linux-master/include/linux/ceph/ |
H A D | messenger.h | 123 CEPH_MSG_DATA_BIO, /* data source/destination is a bio list */ 132 struct bio *bio; member in struct:ceph_bio_iter 143 bio_advance_iter((it)->bio, &(it)->iter, __cur_n); \ 144 if (!(it)->iter.bi_size && (it)->bio->bi_next) { \ 145 dout("__ceph_bio_iter_advance_step next bio\n"); \ 146 (it)->bio = (it)->bio->bi_next; \ 147 (it)->iter = (it)->bio->bi_iter; \ 169 __bio_for_each_segment(bv, (it)->bio, __cur_ite [all...] |
/linux-master/fs/ocfs2/cluster/ |
H A D | heartbeat.c | 11 #include <linux/bio.h> 493 static void o2hb_bio_end_io(struct bio *bio) argument 495 struct o2hb_bio_wait_ctxt *wc = bio->bi_private; 497 if (bio->bi_status) { 498 mlog(ML_ERROR, "IO Error %d\n", bio->bi_status); 499 wc->wc_error = blk_status_to_errno(bio->bi_status); 503 bio_put(bio); 508 static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg, 518 struct bio *bi local 567 struct bio *bio; local 599 struct bio *bio; local [all...] |
/linux-master/drivers/block/rnbd/ |
H A D | rnbd-srv.c | 105 static void rnbd_dev_bi_end_io(struct bio *bio) argument 107 struct rnbd_io_private *rnbd_priv = bio->bi_private; 111 rtrs_srv_resp_rdma(rnbd_priv->id, blk_status_to_errno(bio->bi_status)); 114 bio_put(bio); 126 struct bio *bio; local 148 bio = bio_alloc(file_bdev(sess_dev->bdev_file), 1, 150 if (bio_add_page(bio, virt_to_page(data), datalen, 152 rnbd_srv_err(sess_dev, "Failed to map data to bio\ [all...] |
/linux-master/drivers/block/ |
H A D | ps3vram.c | 530 static struct bio *ps3vram_do_bio(struct ps3_system_bus_device *dev, argument 531 struct bio *bio) 534 int write = bio_data_dir(bio) == WRITE; 536 loff_t offset = bio->bi_iter.bi_sector << 9; 540 struct bio *next; 542 bio_for_each_segment(bvec, bio, iter) { 576 bio->bi_status = error; 577 bio_endio(bio); 581 static void ps3vram_submit_bio(struct bio *bi argument [all...] |