diff options
Diffstat (limited to 'drivers/md/bcache')
| -rw-r--r-- | drivers/md/bcache/request.c | 12 | ||||
| -rw-r--r-- | drivers/md/bcache/super.c | 2 | ||||
| -rw-r--r-- | drivers/md/bcache/writeback.h | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index 69f16f43f8ab..4b177fe11ebb 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c | |||
| @@ -208,7 +208,7 @@ static void bch_data_insert_start(struct closure *cl) | |||
| 208 | * Journal writes are marked REQ_PREFLUSH; if the original write was a | 208 | * Journal writes are marked REQ_PREFLUSH; if the original write was a |
| 209 | * flush, it'll wait on the journal write. | 209 | * flush, it'll wait on the journal write. |
| 210 | */ | 210 | */ |
| 211 | bio->bi_rw &= ~(REQ_PREFLUSH|REQ_FUA); | 211 | bio->bi_opf &= ~(REQ_PREFLUSH|REQ_FUA); |
| 212 | 212 | ||
| 213 | do { | 213 | do { |
| 214 | unsigned i; | 214 | unsigned i; |
| @@ -405,7 +405,7 @@ static bool check_should_bypass(struct cached_dev *dc, struct bio *bio) | |||
| 405 | if (!congested && | 405 | if (!congested && |
| 406 | mode == CACHE_MODE_WRITEBACK && | 406 | mode == CACHE_MODE_WRITEBACK && |
| 407 | op_is_write(bio_op(bio)) && | 407 | op_is_write(bio_op(bio)) && |
| 408 | (bio->bi_rw & REQ_SYNC)) | 408 | (bio->bi_opf & REQ_SYNC)) |
| 409 | goto rescale; | 409 | goto rescale; |
| 410 | 410 | ||
| 411 | spin_lock(&dc->io_lock); | 411 | spin_lock(&dc->io_lock); |
| @@ -668,7 +668,7 @@ static inline struct search *search_alloc(struct bio *bio, | |||
| 668 | s->iop.write_prio = 0; | 668 | s->iop.write_prio = 0; |
| 669 | s->iop.error = 0; | 669 | s->iop.error = 0; |
| 670 | s->iop.flags = 0; | 670 | s->iop.flags = 0; |
| 671 | s->iop.flush_journal = (bio->bi_rw & (REQ_PREFLUSH|REQ_FUA)) != 0; | 671 | s->iop.flush_journal = (bio->bi_opf & (REQ_PREFLUSH|REQ_FUA)) != 0; |
| 672 | s->iop.wq = bcache_wq; | 672 | s->iop.wq = bcache_wq; |
| 673 | 673 | ||
| 674 | return s; | 674 | return s; |
| @@ -796,8 +796,8 @@ static int cached_dev_cache_miss(struct btree *b, struct search *s, | |||
| 796 | goto out_submit; | 796 | goto out_submit; |
| 797 | } | 797 | } |
| 798 | 798 | ||
| 799 | if (!(bio->bi_rw & REQ_RAHEAD) && | 799 | if (!(bio->bi_opf & REQ_RAHEAD) && |
| 800 | !(bio->bi_rw & REQ_META) && | 800 | !(bio->bi_opf & REQ_META) && |
| 801 | s->iop.c->gc_stats.in_use < CUTOFF_CACHE_READA) | 801 | s->iop.c->gc_stats.in_use < CUTOFF_CACHE_READA) |
| 802 | reada = min_t(sector_t, dc->readahead >> 9, | 802 | reada = min_t(sector_t, dc->readahead >> 9, |
| 803 | bdev_sectors(bio->bi_bdev) - bio_end_sector(bio)); | 803 | bdev_sectors(bio->bi_bdev) - bio_end_sector(bio)); |
| @@ -920,7 +920,7 @@ static void cached_dev_write(struct cached_dev *dc, struct search *s) | |||
| 920 | bch_writeback_add(dc); | 920 | bch_writeback_add(dc); |
| 921 | s->iop.bio = bio; | 921 | s->iop.bio = bio; |
| 922 | 922 | ||
| 923 | if (bio->bi_rw & REQ_PREFLUSH) { | 923 | if (bio->bi_opf & REQ_PREFLUSH) { |
| 924 | /* Also need to send a flush to the backing device */ | 924 | /* Also need to send a flush to the backing device */ |
| 925 | struct bio *flush = bio_alloc_bioset(GFP_NOIO, 0, | 925 | struct bio *flush = bio_alloc_bioset(GFP_NOIO, 0, |
| 926 | dc->disk.bio_split); | 926 | dc->disk.bio_split); |
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 88ef6d14cce3..95a4ca6ce6ff 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c | |||
| @@ -347,7 +347,7 @@ static void uuid_io(struct cache_set *c, int op, unsigned long op_flags, | |||
| 347 | for (i = 0; i < KEY_PTRS(k); i++) { | 347 | for (i = 0; i < KEY_PTRS(k); i++) { |
| 348 | struct bio *bio = bch_bbio_alloc(c); | 348 | struct bio *bio = bch_bbio_alloc(c); |
| 349 | 349 | ||
| 350 | bio->bi_rw = REQ_SYNC|REQ_META|op_flags; | 350 | bio->bi_opf = REQ_SYNC | REQ_META | op_flags; |
| 351 | bio->bi_iter.bi_size = KEY_SIZE(k) << 9; | 351 | bio->bi_iter.bi_size = KEY_SIZE(k) << 9; |
| 352 | 352 | ||
| 353 | bio->bi_end_io = uuid_endio; | 353 | bio->bi_end_io = uuid_endio; |
diff --git a/drivers/md/bcache/writeback.h b/drivers/md/bcache/writeback.h index 073a042aed24..301eaf565167 100644 --- a/drivers/md/bcache/writeback.h +++ b/drivers/md/bcache/writeback.h | |||
| @@ -57,7 +57,7 @@ static inline bool should_writeback(struct cached_dev *dc, struct bio *bio, | |||
| 57 | if (would_skip) | 57 | if (would_skip) |
| 58 | return false; | 58 | return false; |
| 59 | 59 | ||
| 60 | return bio->bi_rw & REQ_SYNC || | 60 | return bio->bi_opf & REQ_SYNC || |
| 61 | in_use <= CUTOFF_WRITEBACK; | 61 | in_use <= CUTOFF_WRITEBACK; |
| 62 | } | 62 | } |
| 63 | 63 | ||
