/linux-master/fs/bcachefs/ |
H A D | move.c | 145 if (unlikely(io->rbio.bio.bi_status || io->rbio.hole)) { 174 static void move_read_endio(struct bio *bio) argument 176 struct moving_io *io = container_of(bio, struct moving_io, rbio.bio); 324 bio_init(&io->write.op.wbio.bio, NULL, io->bi_inline_vecs, pages, 0); 325 bio_set_prio(&io->write.op.wbio.bio, 328 if (bch2_bio_alloc_pages(&io->write.op.wbio.bio, sectors << 9, 334 bio_init(&io->rbio.bio, NULL, io->bi_inline_vecs, pages, 0); 335 io->rbio.bio [all...] |
H A D | data_update.c | 344 /* write bio must own pages: */ 345 BUG_ON(!m->op.wbio.bio.bi_vcnt); 348 m->op.wbio.bio.bi_iter.bi_size = crc.compressed_size << 9; 368 bch2_bio_free_pages_pool(c, &update->op.wbio.bio); 375 struct bio *bio = &update->op.wbio.bio; local 386 while (bio_sectors(bio)) { 387 unsigned sectors = bio_sectors(bio); 431 bio_advance(bio, sector [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...] |
/linux-master/fs/btrfs/ |
H A D | file-item.c | 6 #include <linux/bio.h> 16 #include "bio.h" 336 * Lookup the checksum for the read bio in csum tree. 344 struct bio *bio = &bbio->bio; local 348 u32 orig_len = bio->bi_iter.bi_size; 349 u64 orig_disk_bytenr = bio->bi_iter.bi_sector << SECTOR_SHIFT; 359 * This function is only called for read bio. 370 ASSERT(bio_op(bio) 734 struct bio *bio = &bbio->bio; local [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/drivers/md/ |
H A D | dm-target.c | 13 #include <linux/bio.h> 194 static int io_err_map(struct dm_target *tt, struct bio *bio) argument
|
H A D | dm-crypt.c | 17 #include <linux/bio.h> 55 struct bio *bio_in; 57 struct bio *bio_out; 71 * per bio private data 75 struct bio *base_bio; 217 * pool for per bio private data, crypto requests, 242 static void crypt_endio(struct bio *clone); 987 /* Cannot modify original bio, copy to sg_out and apply Elephant to it */ 1145 static int dm_crypt_integrity_io_alloc(struct dm_crypt_io *io, struct bio *bio) argument 1761 crypt_io_init(struct dm_crypt_io *io, struct crypt_config *cc, struct bio *bio, sector_t sector) argument 3444 crypt_map(struct dm_target *ti, struct bio *bio) argument [all...] |
H A D | dm-zoned-metadata.c | 514 static void dmz_mblock_bio_end_io(struct bio *bio) argument 516 struct dmz_mblock *mblk = bio->bi_private; 519 if (bio->bi_status) 522 if (bio_op(bio) == REQ_OP_WRITE) 531 bio_put(bio); 543 struct bio *bio; local 553 bio = bio_alloc(dev->bdev, 1, REQ_OP_READ | REQ_META | REQ_PRIO, 566 bio_put(bio); 718 struct bio *bio; local 743 struct bio *bio; local [all...] |
H A D | dm-switch.c | 320 static int switch_map(struct dm_target *ti, struct bio *bio) argument 323 sector_t offset = dm_target_offset(ti, bio->bi_iter.bi_sector); 326 bio_set_dev(bio, sctx->path_list[path_nr].dmdev->bdev); 327 bio->bi_iter.bi_sector = sctx->path_list[path_nr].start + offset;
|
H A D | md.c | 350 * call has finished, the bio has been linked into some internal structure 353 static bool is_suspended(struct mddev *mddev, struct bio *bio) argument 357 if (bio_data_dir(bio) != WRITE) 361 if (bio->bi_iter.bi_sector >= READ_ONCE(mddev->suspend_hi)) 363 if (bio_end_sector(bio) < READ_ONCE(mddev->suspend_lo)) 368 bool md_handle_request(struct mddev *mddev, struct bio *bio) argument 371 if (is_suspended(mddev, bio)) { 373 /* Bail out if REQ_NOWAIT is set for the bio */ 402 md_submit_bio(struct bio *bio) argument 544 md_end_flush(struct bio *bio) argument 601 struct bio *bio = mddev->flush_bio; local 630 md_flush_request(struct mddev *mddev, struct bio *bio) argument 1009 super_written(struct bio *bio) argument 1043 struct bio *bio; local 1085 struct bio bio; local 8724 md_submit_discard_bio(struct mddev *mddev, struct md_rdev *rdev, struct bio *bio, sector_t start, sector_t size) argument 8740 md_end_clone_io(struct bio *bio) argument 8757 md_clone_bio(struct mddev *mddev, struct bio **bio) argument 8775 md_account_bio(struct mddev *mddev, struct bio **bio) argument 8782 md_free_cloned_bio(struct bio *bio) argument [all...] |
/linux-master/drivers/md/dm-vdo/ |
H A D | vdo.c | 238 "bio thread array", &config->bio_threads); 302 bio_set_dev(vio->bio, vdo_get_backing_device(vdo)); 303 submit_bio_wait(vio->bio); 304 result = blk_status_to_errno(vio->bio->bi_status); 605 *reason = "bio submission initialization failed"; 614 *reason = "bio ack queue initialization failed"; 772 static void read_super_block_endio(struct bio *bio) argument 774 struct vio *vio = bio->bi_private; 835 struct bio bi local 944 super_block_write_endio(struct bio *bio) argument [all...] |
/linux-master/drivers/block/drbd/ |
H A D | drbd_worker.c | 50 void drbd_md_endio(struct bio *bio) argument 54 device = bio->bi_private; 55 device->md_io.error = blk_status_to_errno(bio->bi_status); 60 bio_put(bio); 171 void drbd_peer_request_endio(struct bio *bio) argument 173 struct drbd_peer_request *peer_req = bio->bi_private; 175 bool is_write = bio_data_dir(bio) == WRITE; 176 bool is_discard = bio_op(bio) 206 drbd_request_endio(struct bio *bio) argument 316 drbd_csum_bio(struct crypto_shash *tfm, struct bio *bio, void *digest) argument [all...] |
H A D | drbd_int.h | 206 * if local IO _is_ allowed, holds the locally submitted bio clone, 209 struct bio *private_bio; 224 struct bio *master_bio; /* master bio pointer */ 253 * how long did it take to complete the master bio 256 * how long the master bio was blocked until we finally allocated 1257 /* Estimate max bio size as 256 * PAGE_SIZE, 1363 /* We also need to make sure we get a bio 1391 extern void __drbd_make_request(struct drbd_device *, struct bio *); 1392 void drbd_submit_bio(struct bio *bi 1517 drbd_submit_bio_noacct(struct drbd_device *device, int fault_type, struct bio *bio) argument [all...] |
H A D | drbd_actlog.c | 129 struct bio *bio; local 142 bio = bio_alloc_bioset(bdev->md_bdev, 1, op | op_flags, GFP_NOIO, 144 bio->bi_iter.bi_sector = sector; 146 if (bio_add_page(bio, device->md_io.page, size, 0) != size) 148 bio->bi_private = device; 149 bio->bi_end_io = drbd_md_endio; 161 bio_get(bio); /* one bio_put() is in the completion handler */ 165 bio_io_error(bio); 167 submit_bio(bio); [all...] |
/linux-master/drivers/block/aoe/ |
H A D | aoedev.c | 164 struct bio *bio; local 172 while ((bio = d->ip.nxbio)) { 173 bio->bi_status = BLK_STS_IOERR; 174 d->ip.nxbio = bio->bi_next;
|
/linux-master/block/ |
H A D | blk-mq-sched.c | 337 bool blk_mq_sched_bio_merge(struct request_queue *q, struct bio *bio, argument 347 ret = e->type->ops.bio_merge(q, bio, nr_segs); 352 hctx = blk_mq_map_queue(q, bio->bi_opf, ctx); 365 if (blk_bio_list_merge(q, &ctx->rq_lists[type], bio, nr_segs))
|
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...] |
H A D | bfq-cgroup.c | 345 struct bfq_group *bfqg = blkg_to_bfqg(rq->bio->bi_blkg); 599 struct bfq_group *bfq_bio_bfqg(struct bfq_data *bfqd, struct bio *bio) argument 601 struct blkcg_gq *blkg = bio->bi_blkg; 611 bio_associate_blkg_from_css(bio, &blkg->blkcg->css); 616 bio_associate_blkg_from_css(bio, 739 * so that we cannot merge bio to a request from the 779 void bfq_bic_update_cgroup(struct bfq_io_cq *bic, struct bio *bio) argument 782 struct bfq_group *bfqg = bfq_bio_bfqg(bfqd, bio); 1463 bfq_bic_update_cgroup(struct bfq_io_cq *bic, struct bio *bio) argument 1470 bfq_bio_bfqg(struct bfq_data *bfqd, struct bio *bio) argument [all...] |
H A D | bfq-iosched.h | 801 * bic associated with the task issuing current bio for 803 * be able to perform the bic lookup, needed by bio-merge 809 /* bfqq associated with the task issuing current bio for merging */ 1089 void bfq_bic_update_cgroup(struct bfq_io_cq *bic, struct bio *bio); 1091 struct bfq_group *bfq_bio_bfqg(struct bfq_data *bfqd, struct bio *bio);
|
/linux-master/drivers/block/ |
H A D | loop.c | 293 struct bio *bio; local 295 __rq_for_each_bio(bio, rq) 296 zero_fill_bio(bio); 357 struct bio *bio = rq->bio; local 359 while (bio) { 360 zero_fill_bio(bio); 361 bio 397 struct bio *bio = rq->bio; local [all...] |
/linux-master/drivers/nvme/target/ |
H A D | nvmet.h | 373 struct bio inline_bio; 382 struct bio inline_bio; 389 struct bio inline_bio; 705 static inline void nvmet_req_bio_put(struct nvmet_req *req, struct bio *bio) 707 if (bio != &req->b.inline_bio) 708 bio_put(bio); 704 nvmet_req_bio_put(struct nvmet_req *req, struct bio *bio) argument
|
/linux-master/fs/xfs/ |
H A D | xfs_buf.c | 1493 struct bio *bio) 1495 struct xfs_buf *bp = (struct xfs_buf *)bio->bi_private; 1497 if (!bio->bi_status && 1500 bio->bi_status = BLK_STS_IOERR; 1506 if (bio->bi_status) { 1507 int error = blk_status_to_errno(bio->bi_status); 1517 bio_put(bio); 1531 struct bio *bio; local 1492 xfs_buf_bio_end_io( struct bio *bio) argument [all...] |
/linux-master/include/trace/events/ |
H A D | f2fs.h | 1182 TP_PROTO(struct super_block *sb, int type, struct bio *bio), 1184 TP_ARGS(sb, type, bio), 1198 __entry->target = bio_dev(bio); 1199 __entry->op = bio_op(bio); 1200 __entry->op_flags = bio->bi_opf; 1202 __entry->sector = bio->bi_iter.bi_sector; 1203 __entry->size = bio->bi_iter.bi_size; 1217 TP_PROTO(struct super_block *sb, int type, struct bio *bio), [all...] |
/linux-master/lib/ |
H A D | irq_poll.c | 9 #include <linux/bio.h>
|
/linux-master/certs/ |
H A D | extract-cert.c | 21 #include <openssl/bio.h>
|