]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, page_alloc: reserve pageblocks for high-order atomic allocations on demand -fix
authoryalin wang <yalin.wang2010@gmail.com>
Wed, 21 Oct 2015 22:03:09 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:09 +0000 (09:03 +1100)
commit2ca0b3a40b8c99e170496d84f33f2e2faf6aea97
tree1f5c7c5b925f89ed4ab5dc04ff95f3b97f9d41c2
parent0303b94393b5f4fc8087ecfa1f2881a1a2a54c28
mm, page_alloc: reserve pageblocks for high-order atomic allocations on demand -fix

There is a redundant check and a memory leak introduced by a patch in
mmotm.  This patch removes an unlikely(order) check as we are sure order
is not zero at the time.  It also checks if a page is already allocated to
avoid a memory leak.

This is a fix to the mmotm patch
mm-page_alloc-reserve-pageblocks-for-high-order-atomic-allocations-on-demand.patch

Signed-off-by: yalin wang <yalin.wang2010@gmail.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c