dmapool: cleanup integer types

To represent the size of a single allocation, dmapool currently uses
'unsigned int' in some places and 'size_t' in other places.  Standardize
on 'unsigned int' to reduce overhead, but use 'size_t' when counting all
the blocks in the entire pool.

Fixes: 2d55c16c0c54 ("dmapool: create/destroy cleanup")
Signed-off-by: Tony Battersby <>
Signed-off-by: Keith Busch <>
Reviewed-by: Christoph Hellwig <>
Cc: Matthew Wilcox <>
Signed-off-by: Andrew Morton <>
1 file changed