projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'renesas-fixes-for-v3.9' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git]
/
fs
/
drop_caches.c
diff --git
a/fs/drop_caches.c
b/fs/drop_caches.c
index 98b77c89494caf7c364272194316d431e10cfcef..c00e055b62820945bef291fa68b145a4d7145667 100644
(file)
--- a/
fs/drop_caches.c
+++ b/
fs/drop_caches.c
@@
-40,9
+40,12
@@
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,
+ };
do {
- nr_objects = shrink_slab(
1000, GFP_KERNEL
, 1000);
+ nr_objects = shrink_slab(
&shrink, 1000
, 1000);
} while (nr_objects > 10);
}