projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
block: Abstract out bvec iterator
[deliverable/linux.git]
/
drivers
/
md
/
bcache
/
writeback.c
diff --git
a/drivers/md/bcache/writeback.c
b/drivers/md/bcache/writeback.c
index 99053b1251bea1049c627580f3614d1c18f89b60..04657e93f4fd55e0985797c5813bffd893ca65bc 100644
(file)
--- a/
drivers/md/bcache/writeback.c
+++ b/
drivers/md/bcache/writeback.c
@@
-113,7
+113,7
@@
static void dirty_init(struct keybuf_key *w)
if (!io->dc->writeback_percent)
bio_set_prio(bio, IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0));
if (!io->dc->writeback_percent)
bio_set_prio(bio, IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0));
- bio->bi_
size
= KEY_SIZE(&w->key) << 9;
+ bio->bi_
iter.bi_size
= KEY_SIZE(&w->key) << 9;
bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS);
bio->bi_private = w;
bio->bi_io_vec = bio->bi_inline_vecs;
bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS);
bio->bi_private = w;
bio->bi_io_vec = bio->bi_inline_vecs;
@@
-186,7
+186,7
@@
static void write_dirty(struct closure *cl)
dirty_init(w);
io->bio.bi_rw = WRITE;
dirty_init(w);
io->bio.bi_rw = WRITE;
- io->bio.bi_
sector
= KEY_START(&w->key);
+ io->bio.bi_
iter.bi_sector
= KEY_START(&w->key);
io->bio.bi_bdev = io->dc->bdev;
io->bio.bi_end_io = dirty_endio;
io->bio.bi_bdev = io->dc->bdev;
io->bio.bi_end_io = dirty_endio;
@@
-255,7
+255,7
@@
static void read_dirty(struct cached_dev *dc)
io->dc = dc;
dirty_init(w);
io->dc = dc;
dirty_init(w);
- io->bio.bi_
sector
= PTR_OFFSET(&w->key, 0);
+ io->bio.bi_
iter.bi_sector
= PTR_OFFSET(&w->key, 0);
io->bio.bi_bdev = PTR_CACHE(dc->disk.c,
&w->key, 0)->bdev;
io->bio.bi_rw = READ;
io->bio.bi_bdev = PTR_CACHE(dc->disk.c,
&w->key, 0)->bdev;
io->bio.bi_rw = READ;
This page took
0.030415 seconds
and
5
git commands to generate.