diff options
Diffstat (limited to 'fs/drop_caches.c')
-rw-r--r-- | fs/drop_caches.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/drop_caches.c b/fs/drop_caches.c index 440999c24353..c00e055b6282 100644 --- a/fs/drop_caches.c +++ b/fs/drop_caches.c | |||
@@ -42,11 +42,10 @@ static void drop_slab(void) | |||
42 | int nr_objects; | 42 | int nr_objects; |
43 | struct shrink_control shrink = { | 43 | struct shrink_control shrink = { |
44 | .gfp_mask = GFP_KERNEL, | 44 | .gfp_mask = GFP_KERNEL, |
45 | .nr_scanned = 1000, | ||
46 | }; | 45 | }; |
47 | 46 | ||
48 | do { | 47 | do { |
49 | nr_objects = shrink_slab(&shrink, 1000); | 48 | nr_objects = shrink_slab(&shrink, 1000, 1000); |
50 | } while (nr_objects > 10); | 49 | } while (nr_objects > 10); |
51 | } | 50 | } |
52 | 51 | ||