diff options
author | Kent Overstreet <koverstreet@google.com> | 2013-03-28 14:50:55 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-03-28 14:50:55 -0400 |
commit | 169ef1cf6171d35550fef85645b83b960e241cff (patch) | |
tree | 61451e5477e992d5bdee0fc906f9db018afc1239 /drivers/md/bcache/request.c | |
parent | 0b6ef4164f50698eee536903d69d086add1a7889 (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/request.c')
-rw-r--r-- | drivers/md/bcache/request.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index dbda9646ef38..83731dc36f34 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c | |||
@@ -58,8 +58,8 @@ static ssize_t cache_mode_read(struct cgroup *cgrp, struct cftype *cft, | |||
58 | char __user *buf, size_t nbytes, loff_t *ppos) | 58 | char __user *buf, size_t nbytes, loff_t *ppos) |
59 | { | 59 | { |
60 | char tmp[1024]; | 60 | char tmp[1024]; |
61 | int len = snprint_string_list(tmp, PAGE_SIZE, bch_cache_modes, | 61 | int len = bch_snprint_string_list(tmp, PAGE_SIZE, bch_cache_modes, |
62 | cgroup_to_bcache(cgrp)->cache_mode + 1); | 62 | cgroup_to_bcache(cgrp)->cache_mode + 1); |
63 | 63 | ||
64 | if (len < 0) | 64 | if (len < 0) |
65 | return len; | 65 | return len; |
@@ -70,7 +70,7 @@ static ssize_t cache_mode_read(struct cgroup *cgrp, struct cftype *cft, | |||
70 | static int cache_mode_write(struct cgroup *cgrp, struct cftype *cft, | 70 | static int cache_mode_write(struct cgroup *cgrp, struct cftype *cft, |
71 | const char *buf) | 71 | const char *buf) |
72 | { | 72 | { |
73 | int v = read_string_list(buf, bch_cache_modes); | 73 | int v = bch_read_string_list(buf, bch_cache_modes); |
74 | if (v < 0) | 74 | if (v < 0) |
75 | return v; | 75 | return v; |
76 | 76 | ||
@@ -205,7 +205,7 @@ static void bio_csum(struct bio *bio, struct bkey *k) | |||
205 | 205 | ||
206 | bio_for_each_segment(bv, bio, i) { | 206 | bio_for_each_segment(bv, bio, i) { |
207 | void *d = kmap(bv->bv_page) + bv->bv_offset; | 207 | void *d = kmap(bv->bv_page) + bv->bv_offset; |
208 | csum = crc64_update(csum, d, bv->bv_len); | 208 | csum = bch_crc64_update(csum, d, bv->bv_len); |
209 | kunmap(bv->bv_page); | 209 | kunmap(bv->bv_page); |
210 | } | 210 | } |
211 | 211 | ||
@@ -835,7 +835,7 @@ static void request_read_done(struct closure *cl) | |||
835 | s->op.cache_bio->bi_sector = s->cache_miss->bi_sector; | 835 | s->op.cache_bio->bi_sector = s->cache_miss->bi_sector; |
836 | s->op.cache_bio->bi_bdev = s->cache_miss->bi_bdev; | 836 | s->op.cache_bio->bi_bdev = s->cache_miss->bi_bdev; |
837 | s->op.cache_bio->bi_size = s->cache_bio_sectors << 9; | 837 | s->op.cache_bio->bi_size = s->cache_bio_sectors << 9; |
838 | bio_map(s->op.cache_bio, NULL); | 838 | bch_bio_map(s->op.cache_bio, NULL); |
839 | 839 | ||
840 | src = bio_iovec(s->op.cache_bio); | 840 | src = bio_iovec(s->op.cache_bio); |
841 | dst = bio_iovec(s->cache_miss); | 841 | dst = bio_iovec(s->cache_miss); |
@@ -962,8 +962,8 @@ static int cached_dev_cache_miss(struct btree *b, struct search *s, | |||
962 | if (!bch_btree_insert_check_key(b, &s->op, s->op.cache_bio)) | 962 | if (!bch_btree_insert_check_key(b, &s->op, s->op.cache_bio)) |
963 | goto out_put; | 963 | goto out_put; |
964 | 964 | ||
965 | bio_map(s->op.cache_bio, NULL); | 965 | bch_bio_map(s->op.cache_bio, NULL); |
966 | if (bio_alloc_pages(s->op.cache_bio, __GFP_NOWARN|GFP_NOIO)) | 966 | if (bch_bio_alloc_pages(s->op.cache_bio, __GFP_NOWARN|GFP_NOIO)) |
967 | goto out_put; | 967 | goto out_put; |
968 | 968 | ||
969 | s->cache_miss = miss; | 969 | s->cache_miss = miss; |