diff options
Diffstat (limited to 'mm/memory_hotplug.c')
-rw-r--r-- | mm/memory_hotplug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 2047465cd27c..e8116f8bdffa 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/page-isolation.h> | 27 | #include <linux/page-isolation.h> |
28 | #include <linux/pfn.h> | 28 | #include <linux/pfn.h> |
29 | #include <linux/suspend.h> | 29 | #include <linux/suspend.h> |
30 | #include <linux/mm_inline.h> | ||
30 | 31 | ||
31 | #include <asm/tlbflush.h> | 32 | #include <asm/tlbflush.h> |
32 | 33 | ||
@@ -672,6 +673,9 @@ do_migrate_range(unsigned long start_pfn, unsigned long end_pfn) | |||
672 | if (!ret) { /* Success */ | 673 | if (!ret) { /* Success */ |
673 | list_add_tail(&page->lru, &source); | 674 | list_add_tail(&page->lru, &source); |
674 | move_pages--; | 675 | move_pages--; |
676 | inc_zone_page_state(page, NR_ISOLATED_ANON + | ||
677 | page_is_file_cache(page)); | ||
678 | |||
675 | } else { | 679 | } else { |
676 | /* Becasue we don't have big zone->lock. we should | 680 | /* Becasue we don't have big zone->lock. we should |
677 | check this again here. */ | 681 | check this again here. */ |