diff options
Diffstat (limited to 'drivers/md/bcache/writeback.c')
-rw-r--r-- | drivers/md/bcache/writeback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c index a80ee5373fd8..93e7e31a4bd3 100644 --- a/drivers/md/bcache/writeback.c +++ b/drivers/md/bcache/writeback.c | |||
@@ -95,7 +95,7 @@ static unsigned writeback_delay(struct cached_dev *dc, unsigned sectors) | |||
95 | !dc->writeback_percent) | 95 | !dc->writeback_percent) |
96 | return 0; | 96 | return 0; |
97 | 97 | ||
98 | return next_delay(&dc->writeback_rate, sectors * 10000000ULL); | 98 | return bch_next_delay(&dc->writeback_rate, sectors * 10000000ULL); |
99 | } | 99 | } |
100 | 100 | ||
101 | /* Background writeback */ | 101 | /* Background writeback */ |
@@ -118,7 +118,7 @@ static void dirty_init(struct keybuf_key *w) | |||
118 | bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS); | 118 | bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS); |
119 | bio->bi_private = w; | 119 | bio->bi_private = w; |
120 | bio->bi_io_vec = bio->bi_inline_vecs; | 120 | bio->bi_io_vec = bio->bi_inline_vecs; |
121 | bio_map(bio, NULL); | 121 | bch_bio_map(bio, NULL); |
122 | } | 122 | } |
123 | 123 | ||
124 | static void refill_dirty(struct closure *cl) | 124 | static void refill_dirty(struct closure *cl) |
@@ -349,7 +349,7 @@ static void read_dirty(struct closure *cl) | |||
349 | io->bio.bi_rw = READ; | 349 | io->bio.bi_rw = READ; |
350 | io->bio.bi_end_io = read_dirty_endio; | 350 | io->bio.bi_end_io = read_dirty_endio; |
351 | 351 | ||
352 | if (bio_alloc_pages(&io->bio, GFP_KERNEL)) | 352 | if (bch_bio_alloc_pages(&io->bio, GFP_KERNEL)) |
353 | goto err_free; | 353 | goto err_free; |
354 | 354 | ||
355 | pr_debug("%s", pkey(&w->key)); | 355 | pr_debug("%s", pkey(&w->key)); |