mm: kill one if loop in __free_pages_bootmem()
authorYinghai Lu <[email protected]>
Wed, 11 Sep 2013 21:20:37 +0000 (14:20 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Sep 2013 22:57:19 +0000 (15:57 -0700)
commite2d0bd2b924d74d5e0d4f395f8f4730d125e198c
tree1ed63051163b55dce3491cb6cee65d621a80c923
parentf92310c1877fc73470bdcd9228758fa3713c191b
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.

Signed-off-by: Yinghai Lu <[email protected]>
Cc: Mel Gorman <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_alloc.c