diff options
author | Christoph Hellwig <hch@lst.de> | 2022-05-11 08:24:10 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-05-13 12:49:27 +0200 |
commit | 1b8e5d1a53696d92374acce2b19a649427f1ec1e (patch) | |
tree | 2cfd32b0c4fc1fa4206212b791983f394e55980e /lib/net_utils.c | |
parent | a5e891321a219679d5a2828150a7dda29a47d8a6 (diff) |
swiotlb: use the right nslabs-derived sizes in swiotlb_init_late
nslabs can shrink when allocations or the remap don't succeed, so make
sure to use it for all sizing. For that remove the bytes value that
can get stale and replace it with local calculations and a boolean to
indicate if the originally requested size could not be allocated.
Fixes: 6424e31b1c05 ("swiotlb: remove swiotlb_init_with_tbl and swiotlb_init_late_with_tbl")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions