[go: nahoru, domu]

Searched defs:bio (Results 1 - 25 of 89) sorted by relevance

1234

/drivers/md/
H A Ddm-bio-record.h10 #include <linux/bio.h>
13 * There are lots of mutable fields in the bio struct that get
15 * such as multipath, may wish to resubmit a bio on error. The
17 * original bio state.
26 static inline void dm_bio_record(struct dm_bio_details *bd, struct bio *bio) argument
28 bd->bi_bdev = bio->bi_bdev;
29 bd->bi_flags = bio->bi_flags;
30 bd->bi_iter = bio->bi_iter;
33 static inline void dm_bio_restore(struct dm_bio_details *bd, struct bio *bi argument
[all...]
H A Ddm-zero.c11 #include <linux/bio.h>
36 static int zero_map(struct dm_target *ti, struct bio *bio) argument
38 switch(bio_rw(bio)) {
40 zero_fill_bio(bio);
50 bio_endio(bio, 0);
52 /* accepted bio, don't make new request */
H A Dmultipath.h26 struct bio *master_bio;
27 struct bio bio; member in struct:multipath_bh
H A Ddm-target.c12 #include <linux/bio.h>
129 static int io_err_map(struct dm_target *tt, struct bio *bio) argument
H A Ddm-cache-policy-internal.h19 struct bio *bio, struct policy_result *result)
21 return p->map(p, oblock, can_block, can_migrate, discarded_oblock, bio, result);
17 policy_map(struct dm_cache_policy *p, dm_oblock_t oblock, bool can_block, bool can_migrate, bool discarded_oblock, struct bio *bio, struct policy_result *result) argument
H A Ddm-linear.c11 #include <linux/bio.h>
82 static void linear_map_bio(struct dm_target *ti, struct bio *bio) argument
86 bio->bi_bdev = lc->dev->bdev;
87 if (bio_sectors(bio))
88 bio->bi_iter.bi_sector =
89 linear_map_sector(ti, bio->bi_iter.bi_sector);
92 static int linear_map(struct dm_target *ti, struct bio *bio) argument
94 linear_map_bio(ti, bio);
[all...]
H A Ddm-delay.c13 #include <linux/bio.h>
64 static void flush_bios(struct bio *bio) argument
66 struct bio *n;
68 while (bio) {
69 n = bio->bi_next;
70 bio->bi_next = NULL;
71 generic_make_request(bio);
72 bio = n;
76 static struct bio *flush_delayed_bio
86 struct bio *bio = dm_bio_from_per_bio_data(delayed, local
228 delay_bio(struct delay_c *dc, int delay, struct bio *bio) argument
273 delay_map(struct dm_target *ti, struct bio *bio) argument
[all...]
H A Ddm-flakey.c13 #include <linux/bio.h>
18 #define all_corrupt_bio_flags_match(bio, fc) \
19 (((bio)->bi_rw & (fc)->corrupt_bio_flags) == (fc)->corrupt_bio_flags)
55 {1, UINT_MAX, "Invalid corrupt bio byte"},
56 {0, 255, "Invalid corrupt value to write into bio byte (0-255)"},
57 {0, UINT_MAX, "Invalid corrupt bio flags mask"},
107 ti->error = "Invalid corrupt bio direction (r or w)";
245 static void flakey_map_bio(struct dm_target *ti, struct bio *bio) argument
249 bio
255 corrupt_bio_data(struct bio *bio, struct flakey_c *fc) argument
274 flakey_map(struct dm_target *ti, struct bio *bio) argument
324 flakey_end_io(struct dm_target *ti, struct bio *bio, int error) argument
[all...]
H A Dfaulty.c44 * we clone the bio and insert a new b_end_io into the chain.
73 static void faulty_fail(struct bio *bio, int error) argument
75 struct bio *b = bio->bi_private;
77 b->bi_iter.bi_size = bio->bi_iter.bi_size;
78 b->bi_iter.bi_sector = bio->bi_iter.bi_sector;
80 bio_put(bio);
173 static void make_request(struct mddev *mddev, struct bio *bio) argument
[all...]
H A Dlinear.c56 * linear_mergeable_bvec -- tell bio layer if two requests can be merged
58 * @bvm: properties of new bio
289 static void linear_make_request(struct mddev *mddev, struct bio *bio) argument
293 struct bio *split;
296 if (unlikely(bio->bi_rw & REQ_FLUSH)) {
297 md_flush_request(mddev, bio);
304 tmp_dev = which_dev(mddev, bio->bi_iter.bi_sector);
308 bio->bi_bdev = tmp_dev->rdev->bdev;
312 if (unlikely(bio
[all...]
H A Dmultipath.c77 struct bio *bio = mp_bh->master_bio; local
80 bio_endio(bio, err);
84 static void multipath_end_request(struct bio *bio, int error) argument
86 int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags);
87 struct multipath_bh *mp_bh = bio->bi_private;
93 else if (!(bio->bi_rw & REQ_RAHEAD)) {
101 (unsigned long long)bio->bi_iter.bi_sector);
108 static void multipath_make_request(struct mddev *mddev, struct bio * bi argument
337 struct bio *bio; local
[all...]
/drivers/md/bcache/
H A Ddebug.h4 struct bio;
11 void bch_data_verify(struct cached_dev *, struct bio *);
20 static inline void bch_data_verify(struct cached_dev *dc, struct bio *bio) {} argument
H A Drequest.h7 struct bio *bio; member in struct:data_insert_op
H A Dwriteback.h42 static inline bool should_writeback(struct cached_dev *dc, struct bio *bio, argument
53 bcache_dev_stripe_dirty(dc, bio->bi_iter.bi_sector,
54 bio_sectors(bio)))
60 return bio->bi_rw & REQ_SYNC ||
H A Djournal.h148 struct bio discard_bio;
152 struct bio bio; member in struct:journal_device
H A Dmovinggc.c18 struct bbio bio; member in struct:moving_io
46 struct bio *bio = &io->bio.bio; local
50 bio_for_each_segment_all(bv, bio, i)
63 static void read_moving_endio(struct bio *bio, int error) argument
65 struct bbio *b = container_of(bio, struct bbio, bio);
81 struct bio *bio = &io->bio.bio; local
122 struct bio *bio = &io->bio.bio; local
133 struct bio *bio; local
[all...]
H A Dbtree.h146 struct bio *bio; member in struct:btree
H A Ddebug.c34 struct bio *bio; local
51 bio = bch_bbio_alloc(b->c);
52 bio->bi_bdev = PTR_CACHE(b->c, &b->key, 0)->bdev;
53 bio->bi_iter.bi_sector = PTR_OFFSET(&b->key, 0);
54 bio->bi_iter.bi_size = KEY_SIZE(&v->key) << 9;
55 bch_bio_map(bio, sorted);
57 submit_bio_wait(REQ_META|READ_SYNC, bio);
58 bch_bbio_free(bio, b->c);
105 void bch_data_verify(struct cached_dev *dc, struct bio *bi argument
[all...]
H A Dio.c14 static unsigned bch_bio_max_sectors(struct bio *bio) argument
16 struct request_queue *q = bdev_get_queue(bio->bi_bdev);
21 if (bio->bi_rw & REQ_DISCARD)
22 return min(bio_sectors(bio), q->limits.max_discard_sectors);
24 bio_for_each_segment(bv, bio, iter) {
26 .bi_bdev = bio->bi_bdev,
27 .bi_sector = bio->bi_iter.bi_sector,
29 .bi_rw = bio->bi_rw,
47 ret = max_t(int, ret, bio_iovec(bio)
64 bch_bio_submit_split_endio(struct bio *bio, int error) argument
76 bch_generic_make_request(struct bio *bio, struct bio_split_pool *p) argument
114 bch_bbio_free(struct bio *bio, struct cache_set *c) argument
123 struct bio *bio = &b->bio; local
133 __bch_submit_bbio(struct bio *bio, struct cache_set *c) argument
144 bch_submit_bbio(struct bio *bio, struct cache_set *c, struct bkey *k, unsigned ptr) argument
206 bch_bbio_count_io_errors(struct cache_set *c, struct bio *bio, int error, const char *m) argument
235 bch_bbio_endio(struct cache_set *c, struct bio *bio, int error, const char *m) argument
[all...]
H A Dutil.c8 #include <linux/bio.h>
225 void bch_bio_map(struct bio *bio, void *base) argument
227 size_t size = bio->bi_iter.bi_size;
228 struct bio_vec *bv = bio->bi_io_vec;
230 BUG_ON(!bio->bi_iter.bi_size);
231 BUG_ON(bio->bi_vcnt);
236 for (; size; bio->bi_vcnt++, bv++) {
H A Dwriteback.c102 struct bio bio; member in struct:dirty_io
108 struct bio *bio = &io->bio; local
110 bio_init(bio);
112 bio_set_prio(bio, IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0));
114 bio->bi_iter.bi_size = KEY_SIZE(&w->key) << 9;
115 bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS);
116 bio
169 dirty_endio(struct bio *bio, int error) argument
196 read_dirty_endio(struct bio *bio, int error) argument
[all...]
/drivers/scsi/
H A Dsd_dif.c112 struct bio *bio; local
124 __rq_for_each_bio(bio, scmd->request) {
125 struct bio_integrity_payload *bip = bio_integrity(bio);
163 struct bio *bio; local
176 __rq_for_each_bio(bio, scmd->request) {
177 struct bio_integrity_payload *bip = bio_integrity(bio);
/drivers/block/rsxx/
H A Ddev.c34 #include <linux/bio.h>
46 * If you see a "bio too big" error in the log you will need to raise this
59 struct bio *bio; member in struct:rsxx_bio_meta
113 static void disk_stats_start(struct rsxx_cardinfo *card, struct bio *bio) argument
116 int rw = bio_data_dir(bio);
128 struct bio *bio,
133 int rw = bio_data_dir(bio);
127 disk_stats_complete(struct rsxx_cardinfo *card, struct bio *bio, unsigned long start_time) argument
166 rsxx_make_request(struct request_queue *q, struct bio *bio) argument
[all...]
/drivers/s390/block/
H A Dxpram.c40 #include <linux/bio.h>
184 static void xpram_make_request(struct request_queue *q, struct bio *bio) argument
186 xpram_device_t *xdev = bio->bi_bdev->bd_disk->private_data;
193 if ((bio->bi_iter.bi_sector & 7) != 0 ||
194 (bio->bi_iter.bi_size & 4095) != 0)
197 if ((bio->bi_iter.bi_size >> 12) > xdev->size)
200 if ((bio->bi_iter.bi_sector >> 3) > 0xffffffffU - xdev->offset)
202 index = (bio->bi_iter.bi_sector >> 3) + xdev->offset;
203 bio_for_each_segment(bvec, bio, ite
[all...]
/drivers/block/aoe/
H A Daoedev.c164 struct bio *bio; local
172 while ((bio = d->ip.nxbio)) {
173 clear_bit(BIO_UPTODATE, &bio->bi_flags);
174 d->ip.nxbio = bio->bi_next;

Completed in 198 milliseconds

1234