]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/workingset.c
mm/list_lru: introduce list_lru_shrink_walk_irq()
[linux.git] / mm / workingset.c
index bc72ad029b3e7109840dae005e29cd9422e77d55..4516dd790129131d4d989d2967bf59c3645e51d4 100644 (file)
@@ -483,13 +483,9 @@ static enum lru_status shadow_lru_isolate(struct list_head *item,
 static unsigned long scan_shadow_nodes(struct shrinker *shrinker,
                                       struct shrink_control *sc)
 {
-       unsigned long ret;
-
        /* list_lru lock nests inside the IRQ-safe i_pages lock */
-       local_irq_disable();
-       ret = list_lru_shrink_walk(&shadow_nodes, sc, shadow_lru_isolate, NULL);
-       local_irq_enable();
-       return ret;
+       return list_lru_shrink_walk_irq(&shadow_nodes, sc, shadow_lru_isolate,
+                                       NULL);
 }
 
 static struct shrinker workingset_shadow_shrinker = {