slab,slub: remove rcu_head size checks
[linux-2.6-microblaze.git] / mm / swap_state.c
index 07f9aa2..ab8e59c 100644 (file)
@@ -216,9 +216,6 @@ int add_to_swap(struct page *page)
        if (!entry.val)
                return 0;
 
-       if (mem_cgroup_try_charge_swap(page, entry))
-               goto fail;
-
        /*
         * Radix-tree node allocations from PF_MEMALLOC contexts could
         * completely exhaust the page allocator. __GFP_NOMEMALLOC