]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_owner: set correct gfp_mask on page_owner
authorJoonsoo Kim <js1304@gmail.com>
Fri, 17 Jul 2015 23:24:18 +0000 (16:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Jul 2015 23:39:54 +0000 (16:39 -0700)
commitce9d1fdafa995c87800d274588f5fa0144aad594
tree22ffd1c08779eb7ff49c313202cfe03492397c29
parent2d0cfe12e3daedc9cf02f028b49eb9e9597fead7
mm/page_owner: set correct gfp_mask on page_owner

Currently, we set wrong gfp_mask to page_owner info in case of isolated
freepage by compaction and split page.  It causes incorrect mixed
pageblock report that we can get from '/proc/pagetypeinfo'.  This metric
is really useful to measure fragmentation effect so should be accurate.
This patch fixes it by setting correct information.

Without this patch, after kernel build workload is finished, number of
mixed pageblock is 112 among roughly 210 movable pageblocks.

But, with this fix, output shows that mixed pageblock is just 57.

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/page_owner.h
mm/page_alloc.c
mm/page_owner.c