+ mm-kill-one-if-loop-in-__free_pages_bootmem.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + mm-kill-one-if-loop-in-__free_pages_bootmem.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 24 Jul 2013 15:32:55 -0700
The patch titled
Subject: mm: kill one if loop in __free_pages_bootmem()
has been added to the -mm tree. Its filename is
mm-kill-one-if-loop-in-__free_pages_bootmem.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-kill-one-if-loop-in-__free_pages_bootmem.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-kill-one-if-loop-in-__free_pages_bootmem.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Yinghai Lu <[email protected]>
Subject: mm: kill one if loop in __free_pages_bootmem()
We should not check loop+1 with loop end in loop body. Just duplicate two lines code to avoid it.
That will help a bit when we have huge amount of pages on system with 16TiB memory.
---
mm/page_alloc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-kill-one-if-loop-in-__free_pages_bootmem +1 -3
@@ -751,19 +751,19 @@ static void __free_pages_ok(struct pagevoid __init __free_pages_bootmem (struct page *page,unsigned int order) {unsigned int nr_pages =1 << order; +struct page *p = page;unsigned int loop; -prefetchw (page); -for (loop =0 ; loop < nr_pages; loop++) { -struct page *p = &page[loop];