]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/linux/dma-direct.h
dma-mapping: inline the fast path dma-direct calls
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Jul 2020 07:47:08 +0000 (09:47 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 16 Jul 2020 14:58:37 +0000 (16:58 +0200)
commitb4174173005972f8f6497883d08d87e0aba1b604
treeba7a1f725adb2a646f3102fe9a6a403939033236
parentd3fa60d7bfdc9a0ff1a524bdef96b3db1fd62022
dma-mapping: inline the fast path dma-direct calls

Inline the single page map/unmap/sync dma-direct calls into the now
out of line generic wrappers.  This restores the behavior of a single
function call that we had before moving the generic calls out of line.
Besides the dma-mapping callers there are just a few callers in IOMMU
drivers that have a bypass mode, and more of those are going to be
switched to the generic bypass soon.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
include/linux/dma-direct.h
kernel/dma/direct.c