diff options
author | Christoph Hellwig <hch@lst.de> | 2018-09-24 10:43:50 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-09-24 21:33:54 +0300 |
commit | 6a9f5f240adfdced863a098d34f8f05ca6ab9d5f (patch) | |
tree | eb81b3a3073e9c03c03170468f2ba43ed7f43487 /arch/x86/include | |
parent | 27ca1d4ed04ea29dc77b47190a3cc82697023e76 (diff) | |
download | linux-6a9f5f240adfdced863a098d34f8f05ca6ab9d5f.tar.xz |
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 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/io.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 6de64840dd22..7c6106216d9c 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -376,9 +376,8 @@ struct bio_vec; extern bool xen_biovec_phys_mergeable(const struct bio_vec *vec1, const struct bio_vec *vec2); -#define BIOVEC_PHYS_MERGEABLE(vec1, vec2) \ - (__BIOVEC_PHYS_MERGEABLE(vec1, vec2) && \ - (!xen_domain() || xen_biovec_phys_mergeable(vec1, vec2))) +#define ARCH_BIOVEC_PHYS_MERGEABLE(vec1, vec2) \ + (!xen_domain() || xen_biovec_phys_mergeable(vec1, vec2)) #endif /* CONFIG_XEN */ #define IO_SPACE_LIMIT 0xffff |