swiotlb: add a IO_TLB_SIZE define
authorChristoph Hellwig <hch@lst.de>
Fri, 5 Feb 2021 10:18:40 +0000 (11:18 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 20 Feb 2021 15:13:32 +0000 (10:13 -0500)
commitb5d7ccb7aac3895c2138fe0980a109116ce15eff
treefe02df46932b2008002b736da60bef8ef8b08295
parent36950f2da1ea4cb683be174f6f581e25b2d33e71
swiotlb: add a IO_TLB_SIZE define

Add a new IO_TLB_SIZE define instead open coding it using
IO_TLB_SHIFT all over.

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>
include/linux/swiotlb.h
kernel/dma/swiotlb.c