/linux-master/fs/bcachefs/ |
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 | super.c | 903 max(offsetof(struct btree_read_bio, bio), 904 offsetof(struct btree_write_bio, wbio.bio)), 1323 offsetof(struct bch_write_bio, bio), 0) ||
|
H A D | journal_io.c | 1000 struct bio *bio; local 1007 bio = bio_kmalloc(nr_bvecs, GFP_KERNEL); 1008 bio_init(bio, ca->disk_sb.bdev, bio->bi_inline_vecs, nr_bvecs, REQ_OP_READ); 1010 bio->bi_iter.bi_sector = offset; 1011 bch2_bio_map(bio, buf->data, sectors_read << 9); 1013 ret = submit_bio_wait(bio); 1014 kfree(bio); 1703 static void journal_write_endio(struct bio *bi argument 1746 struct bio *bio = &ja->bio[w->idx]->bio; local 1791 struct bio *bio = &ja->bio[w->idx]->bio; local [all...] |
H A D | btree_io.c | 1284 struct bio *bio = &rb->bio; local 1297 bio_reset(bio, NULL, REQ_OP_READ|REQ_SYNC|REQ_META); 1298 bio->bi_iter.bi_sector = rb->pick.ptr.offset; 1299 bio->bi_iter.bi_size = btree_buf_bytes(b); 1302 bio_set_dev(bio, ca->disk_sb.bdev); 1303 submit_bio_wait(bio); 1305 bio->bi_status = BLK_STS_REMOVED; 1310 bch2_dev_io_err_on(bio 1359 btree_node_read_endio(struct bio *bio) argument 1380 struct bio *bio[BCH_REPLICAS_MAX]; member in struct:btree_node_read_all 1555 btree_node_read_all_replicas_endio(struct bio *bio) argument 1651 struct bio *bio; local 1891 btree_node_write_endio(struct bio *bio) argument [all...] |
H A D | backpointers.c | 446 struct bio *bio = NULL; local 473 bio = bio_alloc(ca->disk_sb.bdev, buf_pages(data_buf, bytes), REQ_OP_READ, GFP_KERNEL); 474 bio->bi_iter.bi_sector = p.ptr.offset; 475 bch2_bio_map(bio, data_buf, bytes); 476 ret = submit_bio_wait(bio); 494 if (bio) 495 bio_put(bio);
|
H A D | super-io.c | 144 kfree(sb->bio); 159 struct bio *bio; local 198 bio = bio_kmalloc(nr_bvecs, GFP_KERNEL); 199 if (!bio) 202 bio_init(bio, NULL, bio->bi_inline_vecs, nr_bvecs, 0); 204 kfree(sb->bio); 205 sb->bio = bio; 855 write_super_endio(struct bio *bio) argument 877 struct bio *bio = ca->disk_sb.bio; local 895 struct bio *bio = ca->disk_sb.bio; local [all...] |
H A D | super_types.h | 10 struct bio *bio; member in struct:bch_sb_handle
|
H A D | fs-io.c | 42 struct bio bio; member in struct:nocow_flush 45 static void nocow_flush_endio(struct bio *_bio) 48 struct nocow_flush *bio = container_of(_bio, struct nocow_flush, bio); local 50 closure_put(bio->cl); 51 percpu_ref_put(&bio->ca->io_ref); 52 bio_put(&bio->bio); 59 struct nocow_flush *bio; local [all...] |
H A D | fs-io-direct.c | 28 static void bio_check_or_release(struct bio *bio, bool check_dirty) argument 31 bio_check_pages_dirty(bio); 33 bio_release_pages(bio, false); 34 bio_put(bio); 43 bio_check_or_release(&dio->rbio.bio, dio->should_dirty); 46 static void bch2_direct_IO_read_endio(struct bio *bio) argument 48 struct dio_read *dio = bio->bi_private; 50 if (bio 56 bch2_direct_IO_read_split_endio(struct bio *bio) argument 72 struct bio *bio; local 283 struct bio *bio = &dio->op.wbio.bio; local 410 struct bio *bio = &dio->op.wbio.bio; local 442 struct bio *bio = &dio->op.wbio.bio; local 586 struct bio *bio; local [all...] |
H A D | ec.c | 104 struct bio bio; member in struct:ec_bio 673 static void ec_block_endio(struct bio *bio) argument 675 struct ec_bio *ec_bio = container_of(bio, struct ec_bio, bio); 679 struct closure *cl = bio->bi_private; 681 if (bch2_dev_io_err_on(bio->bi_status, ca, 682 bio_data_dir(bio) 686 bio_data_dir(bio) [all...] |
H A D | compress.h | 50 int bch2_bio_uncompress_inplace(struct bch_fs *, struct bio *, 52 int bch2_bio_uncompress(struct bch_fs *, struct bio *, struct bio *, 54 unsigned bch2_bio_compress(struct bch_fs *, struct bio *, size_t *, 55 struct bio *, size_t *, unsigned);
|
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 | checksum.h | 82 struct nonce, struct bio *); 84 int bch2_rechecksum_bio(struct bch_fs *, struct bio *, struct bversion, 91 struct nonce, struct bio *); 94 struct nonce nonce, struct bio *bio) 97 ? __bch2_encrypt_bio(c, type, nonce, bio)
|
H A D | bcachefs.h | 188 #include <linux/bio.h>
|
/linux-master/drivers/scsi/ |
H A D | sd.c | 40 #include <linux/bio.h> 790 struct bio *bio = rq->bio; local 795 if (bio_integrity_flagged(bio, BIP_IP_CHECKSUM)) 798 if (bio_integrity_flagged(bio, BIP_CTRL_NOCHECK) == false) 805 if (bio_integrity_flagged(bio, BIP_CTRL_NOCHECK) == false) 812 if (bio_integrity_flagged(bio, BIP_DISK_NOCHECK))
|
H A D | scsi_lib.c | 12 #include <linux/bio.h> 730 struct bio *bio; local 742 for (bio = rq->bio; bio; bio = bio->bi_next) { 743 if ((bio->bi_opf & ff) != ff) 745 bytes += bio [all...] |
/linux-master/fs/erofs/ |
H A D | internal.h | 16 #include <linux/bio.h> 508 struct bio *erofs_fscache_bio_alloc(struct erofs_map_dev *mdev); 509 void erofs_fscache_submit_bio(struct bio *bio); 527 static inline struct bio *erofs_fscache_bio_alloc(struct erofs_map_dev *mdev) { return NULL; } 528 static inline void erofs_fscache_submit_bio(struct bio *bio) {} argument
|
H A D | fscache.c | 179 struct bio bio; /* w/o bdev to share bio_add_page/endio() */ member in struct:erofs_fscache_bio 189 io->bio.bi_status = errno_to_blk_status(transferred_or_error); 190 io->bio.bi_end_io(&io->bio); 195 struct bio *erofs_fscache_bio_alloc(struct erofs_map_dev *mdev) 200 bio_init(&io->bio, NULL, io->bvecs, BIO_MAX_VECS, REQ_OP_READ); 204 return &io->bio; 207 void erofs_fscache_submit_bio(struct bio *bio) argument [all...] |
/linux-master/drivers/md/ |
H A D | dm.c | 20 #include <linux/bio.h> 45 * For REQ_POLLED fs bio, this flag is set if we link mapped underlying 46 * dm_io into one list, and reuse bio->bi_private as the list head. Before 47 * ending this fs bio, we will recover its ->bi_private. 80 * One of these is allocated (on-stack) per original bio. 84 struct bio *bio; member in struct:clone_info 92 static inline struct dm_target_io *clone_to_tio(struct bio *clone) 97 void *dm_per_bio_data(struct bio *bio, size_ argument 116 dm_bio_get_target_bio_nr(const struct bio *bio) argument 484 dm_start_time_ns_from_clone(struct bio *bio) argument 490 bio_is_flush_with_data(struct bio *bio) argument 495 dm_io_sectors(struct dm_io *io, struct bio *bio) argument 510 struct bio *bio = io->orig_bio; local 573 alloc_io(struct mapped_device *md, struct bio *bio, gfp_t gfp_mask) argument 670 queue_io(struct mapped_device *md, struct bio *bio) argument 897 struct bio *bio = io->orig_bio; local 944 struct bio *bio = io->orig_bio; local 1100 swap_bios_limit(struct dm_target *ti, struct bio *bio) argument 1105 clone_endio(struct bio *bio) argument 1336 dm_accept_partial_bio(struct bio *bio, unsigned int n_sectors) argument 1496 struct bio *bio; local 1612 is_abnormal_io(struct bio *bio) argument 1684 dm_poll_list_head(struct bio *bio) argument 1689 dm_queue_poll_io(struct bio *bio, struct dm_io *io) argument 1760 init_clone_info(struct clone_info *ci, struct dm_io *io, struct dm_table *map, struct bio *bio, bool is_abnormal) argument 1780 dm_split_and_process_bio(struct mapped_device *md, struct dm_table *map, struct bio *bio) argument 1849 dm_submit_bio(struct bio *bio) argument 1887 dm_poll_bio(struct bio *bio, struct io_comp_batch *iob, unsigned int flags) argument 2612 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 | inode.c | 8 #include <linux/bio.h> 45 #include "bio.h" 2581 u64 start = (u64)bbio->bio.bi_iter.bi_sector << SECTOR_SHIFT; 2582 u64 len = bbio->bio.bi_iter.bi_size; 2590 /* No need to split if the ordered extent covers the entire bio. */ 2618 * at IO completion time based on sums calculated at bio submission time. 3316 * @bio_offset: offset to the beginning of the bio (in bytes) 3385 * context (see bio.c and btrfs_put_ordered_extent()) or a non-irq 3421 * btrfs_put_ordered_extent() can run in irq context (see bio.c), which 5167 * still in progress (unlocked the pages in the bio bu 7784 struct bio *bio = &bbio->bio; local 7806 btrfs_dio_submit_io(const struct iomap_iter *iter, struct bio *bio, loff_t file_offset) argument [all...] |
H A D | extent_io.c | 5 #include <linux/bio.h> 22 #include "bio.h" 94 * Structure to record info about the bio being assembled, and other info like 113 /* Caller should ensure the bio has at least some range added */ 114 ASSERT(bbio->bio.bi_iter.bi_size); 116 if (btrfs_op(&bbio->bio) == BTRFS_MAP_READ && 127 * Submit or fail the current bio in the bio_ctrl structure. 139 /* The bio is owned by the end_io handler now */ 465 struct bio *bio local 595 struct bio *bio = &bbio->bio; local 729 struct bio *bio = &bio_ctrl->bbio->bio; 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/block/ |
H A D | blk-iocost.c | 106 * fill up and a bio which is ready to be issued has to wait for a request 567 struct bio *bio; member in struct:iocg_wait 717 static void iocg_commit_bio(struct ioc_gq *iocg, struct bio *bio, argument 722 bio->bi_iocost_cost = cost; 1473 iocg_commit_bio(ctx->iocg, wait->bio, wait->abs_cost, cost); 2521 static void calc_vtime_cost_builtin(struct bio *bio, struct ioc_gq *iocg, argument 2526 u64 pages = max_t(u64, bio_sectors(bio) >> IOC_SECT_TO_PAGE_SHIF 2566 calc_vtime_cost(struct bio *bio, struct ioc_gq *iocg, bool is_merge) argument 2599 ioc_rqos_throttle(struct rq_qos *rqos, struct bio *bio) argument 2734 ioc_rqos_merge(struct rq_qos *rqos, struct request *rq, struct bio *bio) argument 2793 ioc_rqos_done_bio(struct rq_qos *rqos, struct bio *bio) argument [all...] |
/linux-master/fs/zonefs/ |
H A D | super.c | 1115 struct bio bio; local 1122 bio_init(&bio, sb->s_bdev, &bio_vec, 1, REQ_OP_READ); 1123 bio.bi_iter.bi_sector = 0; 1124 __bio_add_page(&bio, page, PAGE_SIZE, 0); 1126 ret = submit_bio_wait(&bio);
|