swiotlb: use the calculated number of areas
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 11 Sep 2023 10:32:51 +0000 (11:32 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 13 Sep 2023 12:13:15 +0000 (09:13 -0300)
commita6a241764f69c62d23fc6960920cc662ae4069e9
tree9199ccaf9a9fc14e40dbf6899663283aff538d7f
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
swiotlb: use the calculated number of areas

Commit 8ac04063354a ("swiotlb: reduce the number of areas to match
actual memory pool size") calculated the reduced number of areas in
swiotlb_init_remap() but didn't actually use the value. Replace usage of
default_nareas accordingly.

Fixes: 8ac04063354a ("swiotlb: reduce the number of areas to match actual memory pool size")
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/swiotlb.c