diff options
author | Christoph Hellwig <hch@lst.de> | 2018-09-24 09:43:50 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-09-24 12:33:54 -0600 |
commit | 6a9f5f240adfdced863a098d34f8f05ca6ab9d5f (patch) | |
tree | eb81b3a3073e9c03c03170468f2ba43ed7f43487 /block/bio.c | |
parent | 27ca1d4ed04ea29dc77b47190a3cc82697023e76 (diff) |
block: simplify BIOVEC_PHYS_MERGEABLE
Turn the macro into an inline, move it to blk.h and simplify the
arch hooks a bit.
Also rename the function to biovec_phys_mergeable as there is no need
to shout.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r-- | block/bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bio.c b/block/bio.c index 1cd47f218200..81d90b839e05 100644 --- a/block/bio.c +++ b/block/bio.c @@ -731,7 +731,7 @@ int bio_add_pc_page(struct request_queue *q, struct bio *bio, struct page } /* If we may be able to merge these biovecs, force a recount */ - if (bio->bi_vcnt > 1 && (BIOVEC_PHYS_MERGEABLE(bvec-1, bvec))) + if (bio->bi_vcnt > 1 && biovec_phys_mergeable(bvec-1, bvec)) bio_clear_flag(bio, BIO_SEG_VALID); done: |