]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmapool: cleanup integer types
authorTony Battersby <tonyb@cybernetics.com>
Thu, 26 Jan 2023 21:51:17 +0000 (13:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:03 +0000 (16:02 -0700)
commitf0a681fe6ff3b4fb4a9810b8978df327540977fd
tree516c30c4183b9a49273afc39b782a428dbc39cd7
parentede38f22c2c9cb8b0ced5030b3285de0c46310d8
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.

Link: https://lkml.kernel.org/r/20230126215125.4069751-5-kbusch@meta.com
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/dmapool.c