swiotlb: don't modify orig_addr in swiotlb_tbl_sync_single
authorChristoph Hellwig <hch@lst.de>
Fri, 5 Feb 2021 09:44:16 +0000 (10:44 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 22 Feb 2021 19:40:29 +0000 (14:40 -0500)
commit16fc3cef33a04632ab6b31758abdd77563a20759
treeccfa214fcd1f6e5084f1e540d4e8a54931c23f5e
parent26a7e094783d482f3e125f09945a5bb1d867b2e6
swiotlb: don't modify orig_addr in swiotlb_tbl_sync_single

swiotlb_tbl_map_single currently nevers sets a tlb_addr that is not
aligned to the tlb bucket size.  But we're going to add such a case
soon, for which this adjustment would be bogus.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jianxiong Gao <jxgao@google.com>
Tested-by: Jianxiong Gao <jxgao@google.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c