]> 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>
Fri, 10 Feb 2023 23:36:04 +0000 (15:36 -0800)
commitfb78cd91bd270f2c4c47d140cec4256a3ef3d044
tree5886d5437786ca6db0e65ae693c53094dd0206d2
parentbf08221bdd13ca8b88512ab422e01107e8c6d3a9
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