]> Pileus Git - ~andy/linux/blobdiff - mm/memory-failure.c
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~andy/linux] / mm / memory-failure.c
index d472e14c6808a7246bc3c6ddb19b9172ef9a2db7..947ed5413279261a830eeaeb42d9392aea0f8fa8 100644 (file)
@@ -248,10 +248,12 @@ void shake_page(struct page *p, int access)
         */
        if (access) {
                int nr;
+               int nid = page_to_nid(p);
                do {
                        struct shrink_control shrink = {
                                .gfp_mask = GFP_KERNEL,
                        };
+                       node_set(nid, shrink.nodes_to_scan);
 
                        nr = shrink_slab(&shrink, 1000, 1000);
                        if (page_count(p) == 1)