]> git.baikalelectronics.ru Git - kernel.git/commit
mm: page_alloc: generalize order handling in __free_pages_bootmem()
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 10 Jan 2012 23:08:10 +0000 (15:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jan 2012 00:30:44 +0000 (16:30 -0800)
commit301bfd8a414b699051a688776d708850764442e9
tree78c1ca3d031483932e2f236706b20064742c0b0c
parent9e94ce8ff6301740738e2a9ab16360e87086d153
mm: page_alloc: generalize order handling in __free_pages_bootmem()

__free_pages_bootmem() used to special-case higher-order frees to save
individual page checking with free_pages_bulk().

Nowadays, both zero order and non-zero order frees use free_pages(), which
checks each individual page anyway, and so there is little point in making
the distinction anymore.  The higher-order loop will work just fine for
zero order pages.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c