lkml.org 
[lkml]   [2009]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1 7/8] Make drop_caches flush pending dput()s and iput()s
Date
When doing echo 3 > /proc/sys/vm/drop_caches, we wish to free up as much inode
and dentry slab as possible. This path is updated to flush any pending iputs
and dputs once the shrinkers are called.

Signed-off-by: Mike Waychison <mikew@google.com>
---

fs/drop_caches.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/drop_caches.c b/fs/drop_caches.c
index 3e5637f..1e47470 100644
--- a/fs/drop_caches.c
+++ b/fs/drop_caches.c
@@ -60,6 +60,7 @@ static void drop_slab(void)
do {
nr_objects = shrink_slab(1000, GFP_KERNEL, 1000);
} while (nr_objects > 10);
+ dput_drain_all();
}

int drop_caches_sysctl_handler(ctl_table *table, int write,


\
 
 \ /
  Last update: 2009-01-17 03:37    [W:0.179 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site