]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mm_init.c: move nr_initialised reset down a bit
authorWei Yang <richard.weiyang@gmail.com>
Sat, 25 May 2024 02:30:40 +0000 (02:30 +0000)
committerMike Rapoport (IBM) <rppt@kernel.org>
Wed, 5 Jun 2024 07:28:10 +0000 (10:28 +0300)
commit922306a253e20ad5d0c4b8479d2dc5df9f325a04
tree06c2b48ecc4d7b9c08a894129f24d301147cff47
parent93bbbcb1e762a49fc18ee1272545b77371595f1e
mm/mm_init.c: move nr_initialised reset down a bit

We don't need to count nr_initialised in two cases:

* for low zones that are always populated
* after first_deferred_pfn is detected

Let's move the nr_initialised reset down a bit to reduce some comparison
of prev_end_pfn and end_pfn.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Link: https://lore.kernel.org/r/20240525023040.13509-3-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
mm/mm_init.c