memcg: handle swap caches
[linux-2.6.git] / mm / swap_state.c
index 81c825f..09291ca 100644 (file)
@@ -118,6 +118,7 @@ void __delete_from_swap_cache(struct page *page)
        total_swapcache_pages--;
        __dec_zone_page_state(page, NR_FILE_PAGES);
        INC_CACHE_INFO(del_total);
+       mem_cgroup_uncharge_swapcache(page);
 }
 
 /**