diff options
| -rw-r--r-- | mm/memcontrol.c | 2 | ||||
| -rw-r--r-- | mm/shmem.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 683b4782019b..2f6893c2f01b 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
| @@ -5773,7 +5773,7 @@ void mem_cgroup_uncharge_list(struct list_head *page_list) | |||
| 5773 | * mem_cgroup_migrate - migrate a charge to another page | 5773 | * mem_cgroup_migrate - migrate a charge to another page |
| 5774 | * @oldpage: currently charged page | 5774 | * @oldpage: currently charged page |
| 5775 | * @newpage: page to transfer the charge to | 5775 | * @newpage: page to transfer the charge to |
| 5776 | * @lrucare: both pages might be on the LRU already | 5776 | * @lrucare: either or both pages might be on the LRU already |
| 5777 | * | 5777 | * |
| 5778 | * Migrate the charge from @oldpage to @newpage. | 5778 | * Migrate the charge from @oldpage to @newpage. |
| 5779 | * | 5779 | * |
diff --git a/mm/shmem.c b/mm/shmem.c index 73ba1df7c8ba..993e6ba689cc 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
| @@ -1013,7 +1013,7 @@ static int shmem_replace_page(struct page **pagep, gfp_t gfp, | |||
| 1013 | */ | 1013 | */ |
| 1014 | oldpage = newpage; | 1014 | oldpage = newpage; |
| 1015 | } else { | 1015 | } else { |
| 1016 | mem_cgroup_migrate(oldpage, newpage, false); | 1016 | mem_cgroup_migrate(oldpage, newpage, true); |
| 1017 | lru_cache_add_anon(newpage); | 1017 | lru_cache_add_anon(newpage); |
| 1018 | *pagep = newpage; | 1018 | *pagep = newpage; |
| 1019 | } | 1019 | } |
