aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/writeback.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-03-28 14:50:55 -0400
committerJens Axboe <axboe@kernel.dk>2013-03-28 14:50:55 -0400
commit169ef1cf6171d35550fef85645b83b960e241cff (patch)
tree61451e5477e992d5bdee0fc906f9db018afc1239 /drivers/md/bcache/writeback.c
parent0b6ef4164f50698eee536903d69d086add1a7889 (diff)
bcache: Don't export utility code, prefix with bch_
Signed-off-by: Kent Overstreet <koverstreet@google.com> Cc: linux-bcache@vger.kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/writeback.c')
-rw-r--r--drivers/md/bcache/writeback.c6
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
124static void refill_dirty(struct closure *cl) 124static 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));