]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - mm/swap.c
hwmon: (k10temp) Add support for F15h M60h
[mirror_ubuntu-bionic-kernel.git] / mm / swap.c
index 3baca701bb78a8c6eb9c3c0b5d2e794834f94497..6b2dc3897cd575f94873df4e6bdaadebd7a1f2a1 100644 (file)
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -62,6 +62,7 @@ static void __page_cache_release(struct page *page)
                del_page_from_lru_list(page, lruvec, page_off_lru(page));
                spin_unlock_irqrestore(&zone->lru_lock, flags);
        }
+       mem_cgroup_uncharge(page);
 }
 
 static void __put_single_page(struct page *page)
@@ -947,6 +948,7 @@ void release_pages(struct page **pages, int nr, bool cold)
        if (zone)
                spin_unlock_irqrestore(&zone->lru_lock, flags);
 
+       mem_cgroup_uncharge_list(&pages_to_free);
        free_hot_cold_page_list(&pages_to_free, cold);
 }
 EXPORT_SYMBOL(release_pages);