Memory controller: make charging gfp mask aware
[linux-2.6.git] / mm / filemap.c
index 8ae171c..63040d5 100644 (file)
@@ -464,7 +464,7 @@ int add_to_page_cache(struct page *page, struct address_space *mapping,
 
        if (error == 0) {
 
-               error = mem_cgroup_cache_charge(page, current->mm);
+               error = mem_cgroup_cache_charge(page, current->mm, gfp_mask);
                if (error)
                        goto out;