diff options
author | Christoph Hellwig <hch@lst.de> | 2021-03-01 08:44:25 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2021-03-17 00:29:41 +0000 |
commit | 2bdba622c351259317b0294c6e9fe243b2404316 (patch) | |
tree | b779ee4e5763d820f86572f09280bc2492d07b42 /drivers/xen/swiotlb-xen.c | |
parent | 2973073a80b46daebc352c31d09d95d16cf6876e (diff) |
swiotlb: move orig addr and size validation into swiotlb_bounce
Move the code to find and validate the original buffer address and size
from the callers into swiotlb_bounce. This means a tiny bit of extra
work in the swiotlb_map path, but avoids code duplication and a leads to
a better code structure.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/swiotlb-xen.c')
0 files changed, 0 insertions, 0 deletions