]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/cma: change the addition of totalcma_pages in the cma_init_reserved_mem
authorHao Ge <gehao@kylinos.cn>
Mon, 29 Jul 2024 08:04:31 +0000 (16:04 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:42 +0000 (17:52 -0700)
commitacde205f0c4299b7e6df44227a735b6179dfe698
tree8738d8b5fe282a0335a254494046036a02fdc6ea
parenta0accee91836c094fb1d2ce84990f8eb4ab3aaf0
mm/cma: change the addition of totalcma_pages in the cma_init_reserved_mem

Replace the unnecessary division calculation with cma->count when update
the value of totalcma_pages.

Link: https://lkml.kernel.org/r/20240729080431.70916-1-hao.ge@linux.dev
Signed-off-by: Hao Ge <gehao@kylinos.cn>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/cma.c