diff options
author | 2012-10-08 16:32:00 -0700 | |
---|---|---|
committer | 2012-10-09 16:22:44 +0900 | |
commit | 2139cbe627b8910ded55148f87ee10f7485408ed (patch) | |
tree | e42678cc486717e39391bfc71ca0e5671468210e /mm/internal.h | |
parent | mm: fix tracing in free_pcppages_bulk() (diff) | |
download | wireguard-linux-2139cbe627b8910ded55148f87ee10f7485408ed.tar.xz wireguard-linux-2139cbe627b8910ded55148f87ee10f7485408ed.zip |
cma: fix counting of isolated pages
Isolated free pages shouldn't be accounted to NR_FREE_PAGES counter. Fix
it by properly decreasing/increasing NR_FREE_PAGES counter in
set_migratetype_isolate()/unset_migratetype_isolate() and removing counter
adjustment for isolated pages from free_one_page() and split_free_page().
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/internal.h')
0 files changed, 0 insertions, 0 deletions