aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVinayak Menon <vinmenon@codeaurora.org>2016-02-23 18:06:29 +0530
committerMoyster <oysterized@gmail.com>2019-05-03 12:53:09 +0200
commit6899527530aee8f9add4b18c591286a59405e1ed (patch)
tree39e8c5c7c0543ec25a6c42fc9bf9a024344a0447 /include
parentf7f92736592211b56cb30a73177cabfd42e307d0 (diff)
mm: add zone counter for cma pages
Add per free area nr_free_cma counter. The idea is to also track the number of cma pages present in free pages. This will be used in later patches to fix issues with zone_watermark_ok. Change-Id: I97da9d2f3642db56fc541c48ab56a7ce78e2333c Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org> Signed-off-by: Prakash Gupta <guptap@codeaurora.org> (cherry picked from commit a147305588507b1a241af87f1006c5d0b30beade)
Diffstat (limited to 'include')
-rw-r--r--include/linux/mmzone.h1
-rw-r--r--include/linux/page-isolation.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 9ceef771f..c44cd2925 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -102,6 +102,7 @@ static inline int get_pageblock_migratetype(struct page *page)
struct free_area {
struct list_head free_list[MIGRATE_TYPES];
unsigned long nr_free;
+ unsigned long nr_free_cma;
};
struct pglist_data;
diff --git a/include/linux/page-isolation.h b/include/linux/page-isolation.h
index 843187592..6b6ad8a5c 100644
--- a/include/linux/page-isolation.h
+++ b/include/linux/page-isolation.h
@@ -37,10 +37,10 @@ bool has_unmovable_pages(struct zone *zone, struct page *page, int count,
bool skip_hwpoisoned_pages);
void set_pageblock_migratetype(struct page *page, int migratetype);
int move_freepages_block(struct zone *zone, struct page *page,
- int migratetype);
+ int migratetype, int old_mt);
int move_freepages(struct zone *zone,
struct page *start_page, struct page *end_page,
- int migratetype);
+ int migratetype, int old_mt);
/*
* Changes migrate type in [start_pfn, end_pfn) to be MIGRATE_ISOLATE.