diff options
| author | Vinayak Menon <vinmenon@codeaurora.org> | 2016-02-23 18:06:29 +0530 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-05-05 12:34:00 +0200 |
| commit | 029dbdfe2a3c8f03ac08bb5d0316643d5a4cb1dc (patch) | |
| tree | 00ce8b6ba19b0ce22f0aed579d1ee65789da46cf /include/linux | |
| parent | 4dbb993a7e64e822b605a130f065e0799308f720 (diff) | |
| download | android_kernel_m2note-029dbdfe2a3c8f03ac08bb5d0316643d5a4cb1dc.tar.gz | |
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/linux')
| -rw-r--r-- | include/linux/mmzone.h | 1 | ||||
| -rw-r--r-- | include/linux/page-isolation.h | 4 |
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. |
