aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorKirill Korotaev <dev@openvz.org>2006-03-25 06:07:45 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-25 11:22:56 -0500
commit2ab13460852e65c2ec0e77000baba5e859a6a2cf (patch)
tree566f37cc9f4cb593c3f85a7eb4ae46b308b8a6dd /fs/dcache.c
parent4ffc84442572669727dc4fcd976582508eaf23e7 (diff)
[PATCH] Reduce sched latency in shrink_dcache_sb()
This patch reduces scheduling latency in shrink_dcache_sb() noticed during remounting of big partitions with many cached dentries. The same latency fix was applied to select_parent() long ago. Signed-off-by: Denis Lunev <den@sw.ru> Signed-off-by: Pavel Emelianov <xemul@sw.ru> Signed-off-by: Kirill Korotaev <dev@openvz.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 0f7ec12d65ff..939584648504 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -489,6 +489,7 @@ repeat:
489 continue; 489 continue;
490 } 490 }
491 prune_one_dentry(dentry); 491 prune_one_dentry(dentry);
492 cond_resched_lock(&dcache_lock);
492 goto repeat; 493 goto repeat;
493 } 494 }
494 spin_unlock(&dcache_lock); 495 spin_unlock(&dcache_lock);