aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/request.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-08-11 01:19:45 -0400
committerJens Axboe <axboe@kernel.dk>2018-08-11 17:46:41 -0400
commit1fae7cf05293d3a2c9e59c1bc59372322386467c (patch)
treec6ac9b2e0c717f8a7f2f2e75cfcd941726f14d47 /drivers/md/bcache/request.c
parent6f10f7d1b02b1bbc305f88d7696445dd38b13881 (diff)
bcache: style fix to add a blank line after declarations
Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Shenghui Wang <shhuiw@foxmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r--drivers/md/bcache/request.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index 6e1a60dd1742..d15d8c5778ed 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -45,6 +45,7 @@ static void bio_csum(struct bio *bio, struct bkey *k)
45 45
46 bio_for_each_segment(bv, bio, iter) { 46 bio_for_each_segment(bv, bio, iter) {
47 void *d = kmap(bv.bv_page) + bv.bv_offset; 47 void *d = kmap(bv.bv_page) + bv.bv_offset;
48
48 csum = bch_crc64_update(csum, d, bv.bv_len); 49 csum = bch_crc64_update(csum, d, bv.bv_len);
49 kunmap(bv.bv_page); 50 kunmap(bv.bv_page);
50 } 51 }
@@ -526,8 +527,8 @@ static int cache_lookup_fn(struct btree_op *op, struct btree *b, struct bkey *k)
526 ? min_t(uint64_t, INT_MAX, 527 ? min_t(uint64_t, INT_MAX,
527 KEY_START(k) - bio->bi_iter.bi_sector) 528 KEY_START(k) - bio->bi_iter.bi_sector)
528 : INT_MAX; 529 : INT_MAX;
529
530 int ret = s->d->cache_miss(b, s, bio, sectors); 530 int ret = s->d->cache_miss(b, s, bio, sectors);
531
531 if (ret != MAP_CONTINUE) 532 if (ret != MAP_CONTINUE)
532 return ret; 533 return ret;
533 534
@@ -623,6 +624,7 @@ static void request_endio(struct bio *bio)
623 624
624 if (bio->bi_status) { 625 if (bio->bi_status) {
625 struct search *s = container_of(cl, struct search, cl); 626 struct search *s = container_of(cl, struct search, cl);
627
626 s->iop.status = bio->bi_status; 628 s->iop.status = bio->bi_status;
627 /* Only cache read errors are recoverable */ 629 /* Only cache read errors are recoverable */
628 s->recoverable = false; 630 s->recoverable = false;
@@ -1212,6 +1214,7 @@ static int cached_dev_ioctl(struct bcache_device *d, fmode_t mode,
1212 unsigned int cmd, unsigned long arg) 1214 unsigned int cmd, unsigned long arg)
1213{ 1215{
1214 struct cached_dev *dc = container_of(d, struct cached_dev, disk); 1216 struct cached_dev *dc = container_of(d, struct cached_dev, disk);
1217
1215 return __blkdev_driver_ioctl(dc->bdev, mode, cmd, arg); 1218 return __blkdev_driver_ioctl(dc->bdev, mode, cmd, arg);
1216} 1219}
1217 1220