]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/drop_caches.c
arm: imx6: defconfig: update tx6 defconfigs
[karo-tx-linux.git] / fs / drop_caches.c
index 98b77c89494caf7c364272194316d431e10cfcef..9fd702f5bfb2886a715e787b6470615ea07021e0 100644 (file)
@@ -40,9 +40,13 @@ static void drop_pagecache_sb(struct super_block *sb, void *unused)
 static void drop_slab(void)
 {
        int nr_objects;
+       struct shrink_control shrink = {
+               .gfp_mask = GFP_KERNEL,
+       };
 
+       nodes_setall(shrink.nodes_to_scan);
        do {
-               nr_objects = shrink_slab(1000, GFP_KERNEL, 1000);
+               nr_objects = shrink_slab(&shrink, 1000, 1000);
        } while (nr_objects > 10);
 }