diff options
-rw-r--r-- | mm/huge_memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index b6c1ce3c53b5..e62ddb8f24b6 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c | |||
@@ -1852,7 +1852,6 @@ static void collapse_huge_page(struct mm_struct *mm, | |||
1852 | set_pmd_at(mm, address, pmd, _pmd); | 1852 | set_pmd_at(mm, address, pmd, _pmd); |
1853 | spin_unlock(&mm->page_table_lock); | 1853 | spin_unlock(&mm->page_table_lock); |
1854 | anon_vma_unlock(vma->anon_vma); | 1854 | anon_vma_unlock(vma->anon_vma); |
1855 | mem_cgroup_uncharge_page(new_page); | ||
1856 | goto out; | 1855 | goto out; |
1857 | } | 1856 | } |
1858 | 1857 | ||
@@ -1898,6 +1897,7 @@ out_up_write: | |||
1898 | return; | 1897 | return; |
1899 | 1898 | ||
1900 | out: | 1899 | out: |
1900 | mem_cgroup_uncharge_page(new_page); | ||
1901 | #ifdef CONFIG_NUMA | 1901 | #ifdef CONFIG_NUMA |
1902 | put_page(new_page); | 1902 | put_page(new_page); |
1903 | #endif | 1903 | #endif |