/linux-master/drivers/md/ |
H A D | raid5-ppl.c | 67 * a bio containing the header page and partial parity pages (sh->ppl_page) for 152 /* inline bio and its biovec for submitting the iounit */ 153 struct bio bio; member in struct:ppl_io_unit 253 bio_init(&io->bio, log->rdev->bdev, io->biovec, PPL_IO_INLINE_BVECS, 398 static void ppl_log_endio(struct bio *bio) argument 400 struct ppl_io_unit *io = bio->bi_private; 407 if (bio->bi_status) 418 static void ppl_submit_iounit_bio(struct ppl_io_unit *io, struct bio *bi argument 433 struct bio *bio = &io->bio; local 581 ppl_flush_endio(struct bio *bio) argument 628 struct bio *bio; local 680 ppl_handle_flush_request(struct bio *bio) argument [all...] |
H A D | dm.h | 86 * To check whether the target type is bio-based or not (request-based). 91 * To check whether the target type is request-based or not (bio-based). 97 * either request-based or bio-based). 105 void dm_zone_endio(struct dm_io *io, struct bio *clone); 110 bool dm_is_zone_write(struct mapped_device *md, struct bio *bio); 115 static inline bool dm_is_zone_write(struct mapped_device *md, struct bio *bio) argument 191 int linear_map(struct dm_target *ti, struct bio *bio); [all...] |
H A D | dm-region-hash.c | 131 region_t dm_rh_bio_to_region(struct dm_region_hash *rh, struct bio *bio) argument 133 return dm_rh_sector_to_region(rh, bio->bi_iter.bi_sector - 390 * @bio 392 * The bio was written on some mirror(s) but failed on other mirror(s). 393 * We can successfully endio the bio but should avoid the region being 398 void dm_rh_mark_nosync(struct dm_region_hash *rh, struct bio *bio) argument 403 region_t region = dm_rh_bio_to_region(rh, bio); 406 if (bio 531 struct bio *bio; local 693 dm_rh_delay(struct dm_region_hash *rh, struct bio *bio) argument [all...] |
H A D | dm-bio-prison-v2.h | 14 #include <linux/bio.h> 24 * Sometimes we can't deal with a bio straight away. We put them in prison 62 * Eventually all bio prison clients should manage their own cell memory. 73 * Shared locks have a bio associated with them. 75 * If the lock is granted the caller can continue to use the bio, and must 78 * If the lock cannot be granted then the bio will be tracked within the 91 struct bio *inmate, 103 * Locks a cell. No associated bio. Exclusive locks get priority. These 139 * Adds any held bios to the bio list.
|
/linux-master/fs/btrfs/ |
H A D | raid56.c | 8 #include <linux/bio.h> 176 /* Some range not covered by bio (partial write), skip it */ 179 * Even if the sector is not covered by bio, if it is 368 * hold the lock for the bio list because we need 369 * to make sure the bio list is empty 378 /* if the bio list isn't empty, this rbio is 524 * Returns true if the bio list inside this rbio covers an entire stripe (no 580 * bio list here, anyone else that wants to 602 /* Return a sector from rbio->stripe_sectors, not from the bio list */ 807 static void rbio_endio_bio_list(struct bio *cu 1052 struct bio *bio; local 1113 index_one_bio(struct btrfs_raid_bio *rbio, struct bio *bio) argument 1146 struct bio *bio; local 1155 bio_get_trace_info(struct btrfs_raid_bio *rbio, struct bio *bio, struct raid56_bio_trace_info *trace_info) argument 1185 struct bio *bio; local 1360 set_rbio_range_error(struct btrfs_raid_bio *rbio, struct bio *bio) argument 1417 set_bio_pages_uptodate(struct btrfs_raid_bio *rbio, struct bio *bio) argument 1439 get_bio_sector_nr(struct btrfs_raid_bio *rbio, struct bio *bio) argument 1458 rbio_update_error_bitmap(struct btrfs_raid_bio *rbio, struct bio *bio) argument 1480 verify_bio_data_sectors(struct btrfs_raid_bio *rbio, struct bio *bio) argument 1519 raid_wait_read_end_io(struct bio *bio) argument 1538 struct bio *bio; local 1665 raid56_parity_write(struct bio *bio, struct btrfs_io_context *bioc) argument 2069 raid56_parity_recover(struct bio *bio, struct btrfs_io_context *bioc, int mirror_num) argument 2200 raid_wait_write_end_io(struct bio *bio) argument 2215 struct bio *bio; local 2362 raid56_parity_alloc_scrub_rbio(struct bio *bio, struct btrfs_io_context *bioc, struct btrfs_device *scrub_dev, unsigned long *dbitmap, int stripe_nsectors) argument [all...] |
/linux-master/fs/squashfs/ |
H A D | zstd_wrapper.c | 12 #include <linux/bio.h> 62 struct bio *bio, int offset, int length, 95 if (!bio_next_segment(bio, &iter_all)) { 61 zstd_uncompress(struct squashfs_sb_info *msblk, void *strm, struct bio *bio, int offset, int length, struct squashfs_page_actor *output) argument
|
H A D | zlib_wrapper.c | 13 #include <linux/bio.h> 53 struct bio *bio, int offset, int length, 77 if (!bio_next_segment(bio, &iter_all)) { 52 zlib_uncompress(struct squashfs_sb_info *msblk, void *strm, struct bio *bio, int offset, int length, struct squashfs_page_actor *output) argument
|
H A D | lzo_wrapper.c | 12 #include <linux/bio.h> 66 struct bio *bio, int offset, int length, 76 while (bio_next_segment(bio, &iter_all)) { 65 lzo_uncompress(struct squashfs_sb_info *msblk, void *strm, struct bio *bio, int offset, int length, struct squashfs_page_actor *output) argument
|
H A D | lz4_wrapper.c | 7 #include <linux/bio.h> 92 struct bio *bio, int offset, int length, 101 while (bio_next_segment(bio, &iter_all)) { 91 lz4_uncompress(struct squashfs_sb_info *msblk, void *strm, struct bio *bio, int offset, int length, struct squashfs_page_actor *output) argument
|
/linux-master/include/linux/ |
H A D | fsverity.h | 174 void fsverity_verify_bio(struct bio *bio); 244 static inline void fsverity_verify_bio(struct bio *bio) argument
|
H A D | device-mapper.h | 12 #include <linux/bio.h> 62 typedef int (*dm_map_fn) (struct dm_target *ti, struct bio *bio); 79 struct bio *bio, blk_status_t *error); 250 * A target implements own bio data integrity. 312 * The bio number can be accessed with dm_bio_get_target_bio_nr. 320 * The bio number can be accessed with dm_bio_get_target_bio_nr. 326 * The bio number can be accessed with dm_bio_get_target_bio_nr. 332 * The bio numbe [all...] |
H A D | blk_types.h | 16 struct bio; 21 typedef void (bio_end_io_t) (struct bio *); 26 * in Linux (blk, bio, genhd). The size of one sector is 512 = 2**9 117 * and the bio would block (cf bio_wouldblock_error()) 223 struct bio { struct 224 struct bio *bi_next; /* request queue link */ 242 * Represents the association of the css and request_queue for the bio. 243 * If a bio goes direct to device, it will not have a blkg as it will 245 * on release of the bio. 279 * We can inline a number of vecs at the end of the bio, t 434 bio_op(const struct bio *bio) argument [all...] |
H A D | fscrypt.h | 417 /* bio.c */ 418 bool fscrypt_decrypt_bio(struct bio *bio); 720 /* bio.c */ 721 static inline bool fscrypt_decrypt_bio(struct bio *bio) argument 836 void fscrypt_set_bio_crypt_ctx(struct bio *bio, 840 void fscrypt_set_bio_crypt_ctx_bh(struct bio *bio, 861 fscrypt_set_bio_crypt_ctx(struct bio *bio, const struct inode *inode, u64 first_lblk, gfp_t gfp_mask) argument 865 fscrypt_set_bio_crypt_ctx_bh( struct bio *bio, const struct buffer_head *first_bh, gfp_t gfp_mask) argument 870 fscrypt_mergeable_bio(struct bio *bio, const struct inode *inode, u64 next_lblk) argument 877 fscrypt_mergeable_bio_bh(struct bio *bio, const struct buffer_head *next_bh) argument [all...] |
/linux-master/drivers/md/bcache/ |
H A D | writeback.c | 326 struct bio bio; member in struct:dirty_io 332 struct bio *bio = &io->bio; local 334 bio_init(bio, NULL, bio->bi_inline_vecs, 337 bio_set_prio(bio, IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0)); 339 bio->bi_iter.bi_size = KEY_SIZE(&w->key) << 9; 340 bio 390 dirty_endio(struct bio *bio) argument 452 read_dirty_endio(struct bio *bio) argument [all...] |
/linux-master/block/ |
H A D | t10-pi.c | 148 struct bio *bio; local 150 __rq_for_each_bio(bio, rq) { 151 struct bio_integrity_payload *bip = bio_integrity(bio); 200 struct bio *bio; local 202 __rq_for_each_bio(bio, rq) { 203 struct bio_integrity_payload *bip = bio_integrity(bio); 400 struct bio *bio; local 441 struct bio *bio; local [all...] |
H A D | blk-throttle.c | 11 #include <linux/bio.h> 236 static inline unsigned int throtl_bio_data_size(struct bio *bio) argument 239 if (unlikely(bio_op(bio) == REQ_OP_DISCARD)) 241 return bio->bi_iter.bi_size; 252 * throtl_qnode_add_bio - add a bio to a throtl_qnode and activate it 253 * @bio: bio being added 254 * @qn: qnode to add bio to 257 * Add @bio t 261 throtl_qnode_add_bio(struct bio *bio, struct throtl_qnode *qn, struct list_head *queued) argument 278 struct bio *bio; local 307 struct bio *bio; local 831 tg_within_iops_limit(struct throtl_grp *tg, struct bio *bio, u32 iops_limit) argument 856 tg_within_bps_limit(struct throtl_grp *tg, struct bio *bio, u64 bps_limit) argument 901 tg_may_dispatch(struct throtl_grp *tg, struct bio *bio, unsigned long *wait) argument 961 throtl_charge_bio(struct throtl_grp *tg, struct bio *bio) argument 985 throtl_add_bio_tg(struct bio *bio, struct throtl_qnode *qn, struct throtl_grp *tg) argument 1013 struct bio *bio; local 1051 struct bio *bio; local 1094 struct bio *bio; local 1256 struct bio *bio; local 2176 __blk_throtl_bio(struct bio *bio) argument 2313 blk_throtl_bio_endio(struct bio *bio) argument [all...] |
H A D | elevator.h | 33 bool (*allow_merge)(struct request_queue *, struct request *, struct bio *); 34 bool (*bio_merge)(struct request_queue *, struct bio *, unsigned int); 35 int (*request_merge)(struct request_queue *q, struct request **, struct bio *); 131 struct bio *); 154 extern bool elv_bio_merge_ok(struct request *, struct bio *);
|
H A D | blk-mq.c | 11 #include <linux/bio.h> 605 rq->bio = rq->biotail = NULL; 680 rq->bio = rq->biotail = NULL; 759 printk(KERN_INFO " bio %p, biotail %p, len %u\n", 760 rq->bio, rq->biotail, blk_rq_bytes(rq)); 764 static void req_bio_endio(struct request *rq, struct bio *bio, argument 768 bio->bi_status = error; 774 if (bio->bi_iter.bi_size != nbytes) 775 bio 822 struct bio *bio = req->bio; local 923 struct bio *bio = req->bio; local 2561 blk_mq_bio_to_request(struct request *rq, struct bio *bio, unsigned int nr_segs) argument 2854 blk_mq_attempt_bio_merge(struct request_queue *q, struct bio *bio, unsigned int nr_segs) argument 2866 blk_mq_get_new_requests(struct request_queue *q, struct blk_plug *plug, struct bio *bio, unsigned int nsegs) argument 2917 blk_mq_use_cached_rq(struct request *rq, struct blk_plug *plug, struct bio *bio) argument 2948 blk_mq_submit_bio(struct bio *bio) argument 3105 struct bio *bio; local 3137 struct bio *bio, *bio_src; local [all...] |
H A D | blk-wbt.c | 597 static inline bool wbt_should_throttle(struct bio *bio) argument 599 switch (bio_op(bio)) { 604 if ((bio->bi_opf & (REQ_SYNC | REQ_IDLE)) == 615 static enum wbt_flags bio_to_wbt_flags(struct rq_wb *rwb, struct bio *bio) argument 622 if (bio_op(bio) == REQ_OP_READ) { 624 } else if (wbt_should_throttle(bio)) { 627 if (bio_op(bio) == REQ_OP_DISCARD) 634 static void wbt_cleanup(struct rq_qos *rqos, struct bio *bi argument 646 wbt_wait(struct rq_qos *rqos, struct bio *bio) argument 664 wbt_track(struct rq_qos *rqos, struct request *rq, struct bio *bio) argument [all...] |
/linux-master/fs/bcachefs/ |
H A D | io_write_types.h | 36 struct bio bio; member in struct:bch_write_bio
|
/linux-master/fs/gfs2/ |
H A D | meta_io.c | 17 #include <linux/bio.h> 189 static void gfs2_meta_read_endio(struct bio *bio) argument 194 bio_for_each_segment_all(bvec, bio, iter_all) { 204 bh->b_end_io(bh, !bio->bi_status); 208 bio_put(bio); 212 * Submit several consecutive buffer head I/O requests as a single bio I/O 219 struct bio *bio; local 221 bio [all...] |
/linux-master/drivers/target/ |
H A D | target_core_pscsi.c | 816 static void pscsi_bi_endio(struct bio *bio) argument 818 bio_uninit(bio); 819 kfree(bio); 827 struct bio *bio = NULL; local 859 if (!bio) { 862 bio = bio_kmalloc(nr_vecs, GFP_KERNEL); 863 if (!bio) 865 bio_init(bio, NUL [all...] |
/linux-master/drivers/nvme/host/ |
H A D | multipath.c | 88 struct bio *bio; local 103 for (bio = req->bio; bio; bio = bio->bi_next) { 104 bio_set_dev(bio, ns->head->disk->part0); 105 if (bio->bi_opf & REQ_POLLED) { 106 bio 375 nvme_ns_head_submit_bio(struct bio *bio) argument 503 struct bio *bio, *next; local [all...] |
/linux-master/fs/f2fs/ |
H A D | iostat.c | 240 void iostat_update_and_unbind_ctx(struct bio *bio) argument 242 struct bio_iostat_ctx *iostat_ctx = bio->bi_private; 245 if (op_is_write(bio_op(bio))) { 246 lat_type = bio->bi_opf & REQ_SYNC ? 248 bio->bi_private = iostat_ctx->sbi; 251 bio->bi_private = iostat_ctx->post_read_ctx; 259 struct bio *bio, struct bio_post_read_ctx *ctx) 268 bio 258 iostat_alloc_and_bind_ctx(struct f2fs_sb_info *sbi, struct bio *bio, struct bio_post_read_ctx *ctx) argument [all...] |
/linux-master/kernel/trace/ |
H A D | blktrace.c | 780 static u64 blk_trace_bio_get_cgid(struct request_queue *q, struct bio *bio) argument 790 blkcg_css = bio_blkcg_css(bio); 796 static u64 blk_trace_bio_get_cgid(struct request_queue *q, struct bio *bio) argument 805 if (!rq->bio) 807 /* Use the first bio */ 808 return blk_trace_bio_get_cgid(rq->q, rq->bio); 824 * Records an action against a request. Will log the bio offset + size. 881 * blk_add_trace_bio - Add a trace for a bio oriente 891 blk_add_trace_bio(struct request_queue *q, struct bio *bio, u32 what, int error) argument 909 blk_add_trace_bio_bounce(void *ignore, struct bio *bio) argument 914 blk_add_trace_bio_complete(void *ignore, struct request_queue *q, struct bio *bio) argument 921 blk_add_trace_bio_backmerge(void *ignore, struct bio *bio) argument 927 blk_add_trace_bio_frontmerge(void *ignore, struct bio *bio) argument 933 blk_add_trace_bio_queue(void *ignore, struct bio *bio) argument 938 blk_add_trace_getrq(void *ignore, struct bio *bio) argument 975 blk_add_trace_split(void *ignore, struct bio *bio, unsigned int pdu) argument 1003 blk_add_trace_bio_remap(void *ignore, struct bio *bio, dev_t dev, sector_t from) argument [all...] |