swiotlb: add a IO_TLB_SIZE define
authorJianxiong Gao <jxgao@google.com>
Thu, 29 Apr 2021 17:33:08 +0000 (17:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 May 2021 09:04:32 +0000 (11:04 +0200)
commit22163a8ec863f98bc4a096ac08b2dfe9edc5ddf1
tree2de9a38e996a99b4f36ee1126c1c51aba5c28e44
parent2e8b3b0b8e2d3b56a0b653980c62cbcb374ffedf
swiotlb: add a IO_TLB_SIZE define

commit: b5d7ccb7aac3895c2138fe0980a109116ce15eff

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>
Signed-off-by: Jianxiong Gao <jxgao@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/swiotlb.h
kernel/dma/swiotlb.c