swiotlb: remove swiotlb_nr_tbl
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Mar 2021 16:14:24 +0000 (17:14 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Mar 2021 04:58:25 +0000 (04:58 +0000)
commit2cbc2776efe4faed0e17c48ae076aa03a0fcc61f
tree9f3fbd9abc1e971ad0807dcd2e0645b9aafd8634
parent2d29960af0bee8cc6731b9bd3964850c9e7a6840
swiotlb: remove swiotlb_nr_tbl

All callers just use it to check if swiotlb is active at all, for which
they can just use is_swiotlb_active.  In the longer run drivers need
to stop using is_swiotlb_active as well, but let's do the simple step
first.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/gpu/drm/i915/gem/i915_gem_internal.c
drivers/gpu/drm/nouveau/nouveau_ttm.c
drivers/pci/xen-pcifront.c
include/linux/swiotlb.h
kernel/dma/swiotlb.c