]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - kernel/dma/swiotlb.c
swiotlb: Move alloc_size to swiotlb_find_slots
authorClaire Chang <tientzu@chromium.org>
Thu, 24 Jun 2021 15:55:21 +0000 (23:55 +0800)
committerKonrad Rzeszutek Wilk <konrad@kernel.org>
Wed, 14 Jul 2021 00:04:46 +0000 (20:04 -0400)
commit36f7b2f3ca5f0bee00abf9ea52748ce0644a21c6
treeebbc1de9050244fc988e5546190fc3e9caf55b8c
parent903cd0f315fe426c6a64c54ed389de0becb663dc
swiotlb: Move alloc_size to swiotlb_find_slots

Rename find_slots to swiotlb_find_slots and move the maintenance of
alloc_size to it for better code reusability later.

Signed-off-by: Claire Chang <tientzu@chromium.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Will Deacon <will@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c