diff options
author | Christoph Hellwig <hch@lst.de> | 2018-09-24 09:43:50 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-09-24 20:33:54 +0200 |
commit | 6a9f5f240adfdced863a098d34f8f05ca6ab9d5f (patch) | |
tree | eb81b3a3073e9c03c03170468f2ba43ed7f43487 /block/blk-integrity.c | |
parent | block: move req_gap_back_merge to blk.h (diff) | |
download | linux-6a9f5f240adfdced863a098d34f8f05ca6ab9d5f.tar.xz linux-6a9f5f240adfdced863a098d34f8f05ca6ab9d5f.zip |
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/blk-integrity.c')
-rw-r--r-- | block/blk-integrity.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-integrity.c b/block/blk-integrity.c index 6121611e1316..0f7267916509 100644 --- a/block/blk-integrity.c +++ b/block/blk-integrity.c @@ -49,7 +49,7 @@ int blk_rq_count_integrity_sg(struct request_queue *q, struct bio *bio) bio_for_each_integrity_vec(iv, bio, iter) { if (prev) { - if (!BIOVEC_PHYS_MERGEABLE(&ivprv, &iv)) + if (!biovec_phys_mergeable(&ivprv, &iv)) goto new_segment; if (!BIOVEC_SEG_BOUNDARY(q, &ivprv, &iv)) @@ -95,7 +95,7 @@ int blk_rq_map_integrity_sg(struct request_queue *q, struct bio *bio, bio_for_each_integrity_vec(iv, bio, iter) { if (prev) { - if (!BIOVEC_PHYS_MERGEABLE(&ivprv, &iv)) + if (!biovec_phys_mergeable(&ivprv, &iv)) goto new_segment; if (!BIOVEC_SEG_BOUNDARY(q, &ivprv, &iv)) |