clk: at91: pll: fix input range validity check
[firefly-linux-kernel-4.4.55.git] / mm / memory-failure.c
index feb803bf344364132e92bc10d575ba26bdd0b45d..d487f8dc6d392ab7663c2e63317f12e29e37e743 100644 (file)
@@ -242,15 +242,8 @@ void shake_page(struct page *p, int access)
         * Only call shrink_node_slabs here (which would also shrink
         * other caches) if access is not potentially fatal.
         */
-       if (access) {
-               int nr;
-               int nid = page_to_nid(p);
-               do {
-                       nr = shrink_node_slabs(GFP_KERNEL, nid, 1000, 1000);
-                       if (page_count(p) == 1)
-                               break;
-               } while (nr > 10);
-       }
+       if (access)
+               drop_slab_node(page_to_nid(p));
 }
 EXPORT_SYMBOL_GPL(shake_page);
 
@@ -1653,8 +1646,6 @@ static int __soft_offline_page(struct page *page, int flags)
                         * source page should be freed back to buddy before
                         * setting PG_hwpoison.
                         */
-                       if (!is_free_buddy_page(page))
-                               lru_add_drain_all();
                        if (!is_free_buddy_page(page))
                                drain_all_pages(page_zone(page));
                        SetPageHWPoison(page);