From: David Woodhouse Date: Sat, 13 Oct 2007 10:32:16 +0000 (+0100) Subject: [JFFS2] Don't count all 'very dirty' blocks except in debug mode X-Git-Tag: v2.6.24-rc1~1364^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8c68f32644fc8942b25af9239967dd01be621fa;p=linux-2.6 [JFFS2] Don't count all 'very dirty' blocks except in debug mode ... where we'll actually print the count in a debug message. Signed-off-by: David Woodhouse --- diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c index 1b79534e9d..a0313fa874 100644 --- a/fs/jffs2/nodemgmt.c +++ b/fs/jffs2/nodemgmt.c @@ -749,7 +749,9 @@ int jffs2_thread_should_wake(struct jffs2_sb_info *c) nr_very_dirty++; if (nr_very_dirty == c->vdirty_blocks_gctrigger) { ret = 1; - D1(break); + /* In debug mode, actually go through and count them all */ + D1(continue); + break; } }