diff options
Diffstat (limited to 'fs/drop_caches.c')
-rw-r--r-- | fs/drop_caches.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/drop_caches.c b/fs/drop_caches.c index 98b77c89494c..440999c24353 100644 --- a/fs/drop_caches.c +++ b/fs/drop_caches.c | |||
@@ -40,9 +40,13 @@ static void drop_pagecache_sb(struct super_block *sb, void *unused) | |||
40 | static void drop_slab(void) | 40 | static void drop_slab(void) |
41 | { | 41 | { |
42 | int nr_objects; | 42 | int nr_objects; |
43 | struct shrink_control shrink = { | ||
44 | .gfp_mask = GFP_KERNEL, | ||
45 | .nr_scanned = 1000, | ||
46 | }; | ||
43 | 47 | ||
44 | do { | 48 | do { |
45 | nr_objects = shrink_slab(1000, GFP_KERNEL, 1000); | 49 | nr_objects = shrink_slab(&shrink, 1000); |
46 | } while (nr_objects > 10); | 50 | } while (nr_objects > 10); |
47 | } | 51 | } |
48 | 52 | ||