/linux-3.3/include/linux/ |
D | blk_types.h | 33 struct bio { struct 36 struct bio *bi_next; /* request queue link */ argument 43 unsigned short bi_vcnt; /* how many bio_vec's */ argument 55 * sizes of the first and last mergeable segments in this bio. argument 64 struct bio_vec *bi_io_vec; /* the actual vec list */ argument 66 bio_end_io_t *bi_end_io; argument 70 struct bio_integrity_payload *bi_integrity; /* data integrity */ argument 73 bio_destructor_t *bi_destructor; /* destructor */ argument 76 * We can inline a number of vecs at the end of the bio, to avoid argument 80 struct bio_vec bi_inline_vecs[0]; argument [all …]
|
D | bio.h | 50 #define bio_prio(bio) ((bio)->bi_rw >> BIO_PRIO_SHIFT) argument 51 #define bio_prio_valid(bio) ioprio_valid(bio_prio(bio)) argument 53 #define bio_set_prio(bio, prio) do { \ argument 63 #define bio_iovec_idx(bio, idx) (&((bio)->bi_io_vec[(idx)])) argument 64 #define bio_iovec(bio) bio_iovec_idx((bio), (bio)->bi_idx) argument 65 #define bio_page(bio) bio_iovec((bio))->bv_page argument 66 #define bio_offset(bio) bio_iovec((bio))->bv_offset argument 67 #define bio_segments(bio) ((bio)->bi_vcnt - (bio)->bi_idx) argument 68 #define bio_sectors(bio) ((bio)->bi_size >> 9) argument 70 static inline unsigned int bio_cur_bytes(struct bio *bio) in bio_cur_bytes() [all …]
|
/linux-3.3/fs/ |
D | bio-integrity.c | 83 struct bio_integrity_payload *bio_integrity_alloc_bioset(struct bio *bio, in bio_integrity_alloc_bioset() 129 struct bio_integrity_payload *bio_integrity_alloc(struct bio *bio, in bio_integrity_alloc() 145 void bio_integrity_free(struct bio *bio, struct bio_set *bs) in bio_integrity_free() 174 int bio_integrity_add_page(struct bio *bio, struct page *page, in bio_integrity_add_page() 224 int bio_integrity_enabled(struct bio *bio) in bio_integrity_enabled() 262 unsigned int bio_integrity_tag_size(struct bio *bio) in bio_integrity_tag_size() 272 int bio_integrity_tag(struct bio *bio, void *tag_buf, unsigned int len, int set) in bio_integrity_tag() 311 int bio_integrity_set_tag(struct bio *bio, void *tag_buf, unsigned int len) in bio_integrity_set_tag() 329 int bio_integrity_get_tag(struct bio *bio, void *tag_buf, unsigned int len) in bio_integrity_get_tag() 346 static void bio_integrity_generate(struct bio *bio) in bio_integrity_generate() [all …]
|
D | bio.c | 233 void bio_free(struct bio *bio, struct bio_set *bs) in bio_free() 254 void bio_init(struct bio *bio) in bio_init() 281 struct bio *bio; in bio_alloc_bioset() local 316 static void bio_fs_destructor(struct bio *bio) in bio_fs_destructor() 342 struct bio *bio = bio_alloc_bioset(gfp_mask, nr_iovecs, fs_bio_set); in bio_alloc() local 351 static void bio_kmalloc_destructor(struct bio *bio) in bio_kmalloc_destructor() 370 struct bio *bio; in bio_kmalloc() local 390 void zero_fill_bio(struct bio *bio) in zero_fill_bio() 413 void bio_put(struct bio *bio) in bio_put() 427 inline int bio_phys_segments(struct request_queue *q, struct bio *bio) in bio_phys_segments() [all …]
|
D | mpage.c | 44 static void mpage_end_io(struct bio *bio, int err) in mpage_end_io() 74 static struct bio *mpage_bio_submit(int rw, struct bio *bio) in mpage_bio_submit() 86 struct bio *bio; in mpage_alloc() local 155 do_mpage_readpage(struct bio *bio, struct page *page, unsigned nr_pages, in do_mpage_readpage() 369 struct bio *bio = NULL; in mpage_readpages() local 404 struct bio *bio = NULL; in mpage_readpage() local 437 struct bio *bio; member 447 struct bio *bio = mpd->bio; in __mpage_writepage() local
|
D | direct-io.c | 62 struct bio *bio; /* bio under assembly */ member 320 static void dio_bio_end_aio(struct bio *bio, int error) in dio_bio_end_aio() 348 static void dio_bio_end_io(struct bio *bio, int error) in dio_bio_end_io() 370 void dio_end_io(struct bio *bio, int error) in dio_end_io() 386 struct bio *bio; in dio_bio_alloc() local 414 struct bio *bio = sdio->bio; in dio_bio_submit() local 455 struct bio *bio = NULL; in dio_await_one() local 485 static int dio_bio_complete(struct dio *dio, struct bio *bio) in dio_bio_complete() 518 struct bio *bio; in dio_await_completion() local 540 struct bio *bio; in dio_bio_reap() local
|
/linux-3.3/mm/ |
D | page_io.c | 26 struct bio *bio; in get_swap_bio() local 43 static void end_swap_bio_write(struct bio *bio, int err) in end_swap_bio_write() 69 void end_swap_bio_read(struct bio *bio, int err) in end_swap_bio_read() 94 struct bio *bio; in swap_writepage() local 120 struct bio *bio; in swap_readpage() local
|
D | bounce.c | 123 static void bounce_end_io(struct bio *bio, mempool_t *pool, int err) in bounce_end_io() 148 static void bounce_end_io_write(struct bio *bio, int err) in bounce_end_io_write() 153 static void bounce_end_io_write_isa(struct bio *bio, int err) in bounce_end_io_write_isa() 159 static void __bounce_end_io_read(struct bio *bio, mempool_t *pool, int err) in __bounce_end_io_read() 169 static void bounce_end_io_read(struct bio *bio, int err) in bounce_end_io_read() 174 static void bounce_end_io_read_isa(struct bio *bio, int err) in bounce_end_io_read_isa() 183 struct bio *bio = NULL; in __blk_queue_bounce() local
|
/linux-3.3/block/ |
D | blk-merge.c | 13 struct bio *bio) in __blk_recalc_rq_segments() 76 void blk_recount_segments(struct request_queue *q, struct bio *bio) in blk_recount_segments() 87 static int blk_phys_contig_segment(struct request_queue *q, struct bio *bio, in blk_phys_contig_segment() 204 struct bio *bio) in ll_new_hw_segment() 229 struct bio *bio) in ll_back_merge_fn() 253 struct bio *bio) in ll_front_merge_fn() 329 struct bio *bio; in blk_rq_set_mixed_merge() local 475 bool blk_rq_merge_ok(struct request *rq, struct bio *bio) in blk_rq_merge_ok() 503 int blk_try_merge(struct request *rq, struct bio *bio) in blk_try_merge()
|
D | blk-map.c | 13 struct bio *bio) in blk_rq_append_bio() 28 static int __blk_rq_unmap_user(struct bio *bio) in __blk_rq_unmap_user() 47 struct bio *bio, *orig_bio; in __blk_rq_map_user() local 115 struct bio *bio = NULL; in blk_rq_map_user() local 194 struct bio *bio; in blk_rq_map_user_iov() local 255 int blk_rq_unmap_user(struct bio *bio) in blk_rq_unmap_user() 297 struct bio *bio; in blk_rq_map_kern() local
|
D | blk-core.c | 151 static void req_bio_endio(struct request *rq, struct bio *bio, in req_bio_endio() 750 static bool blk_rq_should_init_elevator(struct bio *bio) in blk_rq_should_init_elevator() 780 struct bio *bio, gfp_t gfp_mask) in get_request() 937 struct bio *bio) in get_request_wait() 1026 struct request *blk_make_request(struct request_queue *q, struct bio *bio, in blk_make_request() 1180 struct bio *bio = rq->bio; in blk_add_request_payload() local 1197 struct bio *bio) in bio_attempt_back_merge() 1219 struct request *req, struct bio *bio) in bio_attempt_front_merge() 1265 static bool attempt_plug_merge(struct request_queue *q, struct bio *bio, in attempt_plug_merge() 1300 void init_request_from_bio(struct request *req, struct bio *bio) in init_request_from_bio() [all …]
|
D | blk-lib.c | 18 static void bio_batch_end_io(struct bio *bio, int err) in bio_batch_end_io() 48 struct bio *bio; in blkdev_issue_discard() local 132 struct bio *bio; in blkdev_issue_zeroout() local
|
D | blk-throttle.c | 585 struct bio *bio, unsigned long *wait) in tg_with_in_iops_limit() 635 struct bio *bio, unsigned long *wait) in tg_with_in_bps_limit() 687 struct bio *bio, unsigned long *wait) in tg_may_dispatch() 737 static void throtl_charge_bio(struct throtl_grp *tg, struct bio *bio) in throtl_charge_bio() 750 struct bio *bio) in throtl_add_bio_tg() 765 struct bio *bio; in tg_update_disptime() local 785 struct bio *bio; in tg_dispatch_one_bio() local 808 struct bio *bio; in throtl_dispatch_tg() local 909 struct bio *bio; in throtl_dispatch() local 1112 bool blk_throtl_bio(struct request_queue *q, struct bio *bio) in blk_throtl_bio() [all …]
|
/linux-3.3/drivers/md/ |
D | dm-raid1.c | 117 static void queue_bio(struct mirror_set *ms, struct bio *bio, int rw) in queue_bio() 136 struct bio *bio; in dispatch_bios() local 160 static struct mirror *bio_get_m(struct bio *bio) in bio_get_m() 165 static void bio_set_m(struct bio *bio, struct mirror *m) in bio_set_m() 428 static int mirror_available(struct mirror_set *ms, struct bio *bio) in mirror_available() 442 static sector_t map_sector(struct mirror *m, struct bio *bio) in map_sector() 449 static void map_bio(struct mirror *m, struct bio *bio) in map_bio() 456 struct bio *bio) in map_region() 463 static void hold_bio(struct mirror_set *ms, struct bio *bio) in hold_bio() 496 struct bio *bio = context; in read_callback() local [all …]
|
D | raid1.c | 83 struct bio *bio; in r1buf_pool_alloc() local 168 struct bio **bio = r1_bio->bios + i; in put_all_bios() local 189 struct bio *bio = r1_bio->bios[i]; in put_buf() local 221 struct bio *bio = r1_bio->master_bio; in call_bio_endio() local 248 struct bio *bio = r1_bio->master_bio; in raid_end_bio_io() local 277 static int find_bio_disk(struct r1bio *r1_bio, struct bio *bio) in find_bio_disk() 293 static void raid1_end_read_request(struct bio *bio, int error) in raid1_end_read_request() 378 static void raid1_end_write_request(struct bio *bio, int error) in raid1_end_write_request() 664 struct bio *bio; in flush_pending_writes() local 794 static void alloc_behind_pages(struct bio *bio, struct r1bio *r1_bio) in alloc_behind_pages() [all …]
|
D | dm-thin.c | 308 static void cell_release_singleton(struct cell *cell, struct bio *bio) in cell_release_singleton() 330 struct bio *bio; in cell_error() local 602 struct bio *bio; in __requeue_bio_list() local 635 static dm_block_t get_bio_block(struct thin_c *tc, struct bio *bio) in get_bio_block() 640 static void remap(struct thin_c *tc, struct bio *bio, dm_block_t block) in remap() 649 static void remap_and_issue(struct thin_c *tc, struct bio *bio, in remap_and_issue() 706 struct bio *bio; member 734 static void overwrite_endio(struct bio *bio, int err) in overwrite_endio() 748 static void shared_read_endio(struct bio *bio, int err) in shared_read_endio() 807 struct bio *bio; in cell_defer_except() local [all …]
|
D | dm-flakey.c | 18 #define all_corrupt_bio_flags_match(bio, fc) \ argument 239 static void flakey_map_bio(struct dm_target *ti, struct bio *bio) in flakey_map_bio() 248 static void corrupt_bio_data(struct bio *bio, struct flakey_c *fc) in corrupt_bio_data() 267 static int flakey_map(struct dm_target *ti, struct bio *bio, in flakey_map() 316 static int flakey_end_io(struct dm_target *ti, struct bio *bio, in flakey_end_io()
|
D | raid10.c | 107 struct bio *bio; in r10buf_pool_alloc() local 187 struct bio *bio = r10bio->devs[j].bio; in r10buf_pool_free() local 207 struct bio **bio = & r10_bio->devs[i].bio; in put_all_bios() local 259 struct bio *bio = r10_bio->master_bio; in raid_end_bio_io() local 299 struct bio *bio, int *slotp, int *replp) in find_bio_disk() 323 static void raid10_end_read_request(struct bio *bio, int error) in raid10_end_read_request() 406 static void raid10_end_write_request(struct bio *bio, int error) in raid10_end_write_request() 791 struct bio *bio; in flush_pending_writes() local 919 static void make_request(struct mddev *mddev, struct bio * bio) in make_request() 1612 static void end_sync_read(struct bio *bio, int error) in end_sync_read() [all …]
|
D | dm-bio-record.h | 39 static inline void dm_bio_record(struct dm_bio_details *bd, struct bio *bio) in dm_bio_record() 55 static inline void dm_bio_restore(struct dm_bio_details *bd, struct bio *bio) in dm_bio_restore()
|
D | multipath.c | 79 struct bio *bio = mp_bh->master_bio; in multipath_end_bh_io() local 86 static void multipath_end_request(struct bio *bio, int error) in multipath_end_request() 110 static void multipath_make_request(struct mddev *mddev, struct bio * bio) in multipath_make_request() 341 struct bio *bio; in multipathd() local
|
/linux-3.3/fs/logfs/ |
D | dev_bdev.c | 17 static void request_complete(struct bio *bio, int err) in request_complete() 24 struct bio bio; in sync_request() local 67 static void writeseg_end_io(struct bio *bio, int err) in writeseg_end_io() 96 struct bio *bio; in __bdev_writeseg() local 174 static void erase_end_io(struct bio *bio, int err) in erase_end_io() 192 struct bio *bio; in do_erase() local
|
/linux-3.3/fs/nfs/blocklayout/ |
D | blocklayout.c | 131 bl_submit_bio(int rw, struct bio *bio) in bl_submit_bio() 145 void (*end_io)(struct bio *, int err), in bl_alloc_init_bio() 148 struct bio *bio; in bl_alloc_init_bio() local 166 static struct bio *bl_add_page_to_bio(struct bio *bio, int npg, int rw, in bl_add_page_to_bio() 169 void (*end_io)(struct bio *, int err), in bl_add_page_to_bio() 186 static void bl_end_io_read(struct bio *bio, int err) in bl_end_io_read() 234 struct bio *bio = NULL; in bl_read_pagelist() local 345 static void bl_end_io_write_zero(struct bio *bio, int err) in bl_end_io_write_zero() 371 static void bl_end_io_write(struct bio *bio, int err) in bl_end_io_write() 546 struct bio *bio = NULL; in bl_write_pagelist() local
|
/linux-3.3/drivers/block/drbd/ |
D | drbd_wrappers.h | 19 #define drbd_bio_uptodate(bio) bio_flagged(bio, BIO_UPTODATE) argument 30 int fault_type, struct bio *bio) in drbd_generic_make_request()
|
/linux-3.3/drivers/target/ |
D | target_core_iblock.c | 316 static void iblock_end_io_flush(struct bio *bio, int err) in iblock_end_io_flush() 337 struct bio *bio; in iblock_emulate_sync_cache() local 476 static void iblock_bio_destructor(struct bio *bio) in iblock_bio_destructor() 489 struct bio *bio; in iblock_get_bio() local 525 struct bio *bio; in iblock_do_task() local 628 static void iblock_bio_done(struct bio *bio, int err) in iblock_bio_done()
|
/linux-3.3/kernel/power/ |
D | block_io.c | 32 struct bio *bio; in submit() local 79 struct bio *bio; in hib_wait_on_bio_chain() local
|