swiotlb: factor out a nr_slots helper
authorChristoph Hellwig <hch@lst.de>
Fri, 5 Feb 2021 10:19:34 +0000 (11:19 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 20 Feb 2021 15:13:46 +0000 (10:13 -0500)
commitc32a77fd18780a5192dfb6eec69f239faebf28fd
tree5c59703c99d4de5c56404bfaac511673153345ce
parentc7fbeca757fe74135d8b6a4c8ddaef76f5775d68
swiotlb: factor out a nr_slots helper

Factor out a helper to find the number of slots for a given size.

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