Tianyu Lan 7231180903 swiotlb: clean up some coding style and minor issues
- Fix the used field of struct io_tlb_area wasn't initialized
- Set area number to be 0 if input area number parameter is 0
- Use array_size() to calculate io_tlb_area array size
- Make parameters of swiotlb_do_find_slots() more reasonable

Fixes: 26ffb91fa5e0 ("swiotlb: split up the global swiotlb lock")
Signed-off-by: Tianyu Lan <tiala@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2022-07-22 17:20:56 +02:00
..
2022-05-26 17:13:43 -07:00
2022-06-05 10:40:31 -07:00
2022-05-25 16:18:27 -07:00
2021-12-02 17:25:21 +09:00
2022-05-25 11:32:53 -07:00
2022-06-02 08:55:01 -07:00
2022-05-27 21:24:19 -07:00
2022-05-26 16:57:20 -07:00
2022-01-11 13:08:21 -08:00
2022-06-15 19:28:44 -04:00
2022-05-23 17:51:12 -07:00
2022-03-15 10:32:44 +01:00
2022-03-28 17:29:53 -07:00
2022-05-29 10:31:36 -07:00
2022-05-02 14:06:20 -06:00
2022-01-08 12:43:57 -06:00
2022-06-17 14:57:42 -05:00
2022-05-24 11:11:13 -07:00
2022-02-25 09:36:06 +01:00
2022-05-26 16:57:20 -07:00