diff options
Diffstat (limited to 'mm/swap.c')
| -rw-r--r-- | mm/swap.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -29,6 +29,7 @@ | |||
| 29 | #include <linux/cpu.h> | 29 | #include <linux/cpu.h> |
| 30 | #include <linux/notifier.h> | 30 | #include <linux/notifier.h> |
| 31 | #include <linux/backing-dev.h> | 31 | #include <linux/backing-dev.h> |
| 32 | #include <linux/memcontrol.h> | ||
| 32 | 33 | ||
| 33 | /* How many pages do we try to swap or page in/out together? */ | 34 | /* How many pages do we try to swap or page in/out together? */ |
| 34 | int page_cluster; | 35 | int page_cluster; |
| @@ -175,6 +176,7 @@ void activate_page(struct page *page) | |||
| 175 | SetPageActive(page); | 176 | SetPageActive(page); |
| 176 | add_page_to_active_list(zone, page); | 177 | add_page_to_active_list(zone, page); |
| 177 | __count_vm_event(PGACTIVATE); | 178 | __count_vm_event(PGACTIVATE); |
| 179 | mem_cgroup_move_lists(page_get_page_cgroup(page), true); | ||
| 178 | } | 180 | } |
| 179 | spin_unlock_irq(&zone->lru_lock); | 181 | spin_unlock_irq(&zone->lru_lock); |
| 180 | } | 182 | } |
