diff options
author | Yijing Wang <wangyijing@huawei.com> | 2017-10-13 19:35:34 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-10-16 11:07:26 -0400 |
commit | 238501027abf0386fa5f5dcaf589f406eb187bc3 (patch) | |
tree | 9f7450b53c16e5d839161b451aaf5cf79deb9bd1 /drivers/md/bcache/request.c | |
parent | b41c9b0266e8370033a7799f6806bfc70b7fd75f (diff) |
bcache: remove unused parameter
Parameter bio is no longer used, clean it.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Reviewed-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r-- | drivers/md/bcache/request.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index 9ee137e8d387..163a17a80874 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c | |||
@@ -26,12 +26,12 @@ struct kmem_cache *bch_search_cache; | |||
26 | 26 | ||
27 | static void bch_data_insert_start(struct closure *); | 27 | static void bch_data_insert_start(struct closure *); |
28 | 28 | ||
29 | static unsigned cache_mode(struct cached_dev *dc, struct bio *bio) | 29 | static unsigned cache_mode(struct cached_dev *dc) |
30 | { | 30 | { |
31 | return BDEV_CACHE_MODE(&dc->sb); | 31 | return BDEV_CACHE_MODE(&dc->sb); |
32 | } | 32 | } |
33 | 33 | ||
34 | static bool verify(struct cached_dev *dc, struct bio *bio) | 34 | static bool verify(struct cached_dev *dc) |
35 | { | 35 | { |
36 | return dc->verify; | 36 | return dc->verify; |
37 | } | 37 | } |
@@ -369,7 +369,7 @@ static struct hlist_head *iohash(struct cached_dev *dc, uint64_t k) | |||
369 | static bool check_should_bypass(struct cached_dev *dc, struct bio *bio) | 369 | static bool check_should_bypass(struct cached_dev *dc, struct bio *bio) |
370 | { | 370 | { |
371 | struct cache_set *c = dc->disk.c; | 371 | struct cache_set *c = dc->disk.c; |
372 | unsigned mode = cache_mode(dc, bio); | 372 | unsigned mode = cache_mode(dc); |
373 | unsigned sectors, congested = bch_get_congested(c); | 373 | unsigned sectors, congested = bch_get_congested(c); |
374 | struct task_struct *task = current; | 374 | struct task_struct *task = current; |
375 | struct io *i; | 375 | struct io *i; |
@@ -747,7 +747,7 @@ static void cached_dev_read_done(struct closure *cl) | |||
747 | s->cache_miss = NULL; | 747 | s->cache_miss = NULL; |
748 | } | 748 | } |
749 | 749 | ||
750 | if (verify(dc, &s->bio.bio) && s->recoverable && !s->read_dirty_data) | 750 | if (verify(dc) && s->recoverable && !s->read_dirty_data) |
751 | bch_data_verify(dc, s->orig_bio); | 751 | bch_data_verify(dc, s->orig_bio); |
752 | 752 | ||
753 | bio_complete(s); | 753 | bio_complete(s); |
@@ -772,7 +772,7 @@ static void cached_dev_read_done_bh(struct closure *cl) | |||
772 | 772 | ||
773 | if (s->iop.status) | 773 | if (s->iop.status) |
774 | continue_at_nobarrier(cl, cached_dev_read_error, bcache_wq); | 774 | continue_at_nobarrier(cl, cached_dev_read_error, bcache_wq); |
775 | else if (s->iop.bio || verify(dc, &s->bio.bio)) | 775 | else if (s->iop.bio || verify(dc)) |
776 | continue_at_nobarrier(cl, cached_dev_read_done, bcache_wq); | 776 | continue_at_nobarrier(cl, cached_dev_read_done, bcache_wq); |
777 | else | 777 | else |
778 | continue_at_nobarrier(cl, cached_dev_bio_complete, NULL); | 778 | continue_at_nobarrier(cl, cached_dev_bio_complete, NULL); |
@@ -899,7 +899,7 @@ static void cached_dev_write(struct cached_dev *dc, struct search *s) | |||
899 | s->iop.bypass = true; | 899 | s->iop.bypass = true; |
900 | 900 | ||
901 | if (should_writeback(dc, s->orig_bio, | 901 | if (should_writeback(dc, s->orig_bio, |
902 | cache_mode(dc, bio), | 902 | cache_mode(dc), |
903 | s->iop.bypass)) { | 903 | s->iop.bypass)) { |
904 | s->iop.bypass = false; | 904 | s->iop.bypass = false; |
905 | s->iop.writeback = true; | 905 | s->iop.writeback = true; |