]> www.infradead.org Git - users/dwmw2/linux.git/commit
maple_tree: total is not changed for nomem_one case
authorWei Yang <richard.weiyang@gmail.com>
Tue, 15 Oct 2024 12:07:45 +0000 (12:07 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Nov 2024 04:11:14 +0000 (20:11 -0800)
commit4223dd93bfc976debededffc0b03cc63d9b73d14
tree63cb94ed609521b152663f0e88b4bdf922dcf368
parente852cb1d00ceb4b0156832c13ba3daf7ed93ac17
maple_tree: total is not changed for nomem_one case

If it jumps to nomem_one, the total allocated number is not changed.  So
we don't need to adjust it.

For the nomem_bulk case, we know there is a valid mas->alloc.  So we don't
need to do the check.

Link: https://lkml.kernel.org/r/20241015120746.15850-3-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c