mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
block: remove ARCH_BIOVEC_PHYS_MERGEABLE
Take the Xen check into the core code instead of delegating it to the architectures. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
20e3267601
commit
c39ae60dfb
5 changed files with 3 additions and 15 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <linux/idr.h>
|
||||
#include <linux/blk-mq.h>
|
||||
#include <xen/xen.h>
|
||||
#include "blk-mq.h"
|
||||
|
||||
/* Amount of time in which a process may batch requests */
|
||||
|
|
@ -149,10 +150,6 @@ static inline void blk_queue_enter_live(struct request_queue *q)
|
|||
percpu_ref_get(&q->q_usage_counter);
|
||||
}
|
||||
|
||||
#ifndef ARCH_BIOVEC_PHYS_MERGEABLE
|
||||
#define ARCH_BIOVEC_PHYS_MERGEABLE(vec1, vec2) true
|
||||
#endif
|
||||
|
||||
static inline bool biovec_phys_mergeable(struct request_queue *q,
|
||||
struct bio_vec *vec1, struct bio_vec *vec2)
|
||||
{
|
||||
|
|
@ -162,7 +159,7 @@ static inline bool biovec_phys_mergeable(struct request_queue *q,
|
|||
|
||||
if (addr1 + vec1->bv_len != addr2)
|
||||
return false;
|
||||
if (!ARCH_BIOVEC_PHYS_MERGEABLE(vec1, vec2))
|
||||
if (xen_domain() && !xen_biovec_phys_mergeable(vec1, vec2))
|
||||
return false;
|
||||
if ((addr1 | mask) != ((addr2 + vec2->bv_len - 1) | mask))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue