[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 <dwmw2@infradead.org>
This commit is contained in:
David Woodhouse 2007-10-13 11:32:16 +01:00
parent 2665ea842d
commit a8c68f3264
1 changed files with 3 additions and 1 deletions

View File

@ -749,7 +749,9 @@ int jffs2_thread_should_wake(struct jffs2_sb_info *c)
nr_very_dirty++; nr_very_dirty++;
if (nr_very_dirty == c->vdirty_blocks_gctrigger) { if (nr_very_dirty == c->vdirty_blocks_gctrigger) {
ret = 1; ret = 1;
D1(break); /* In debug mode, actually go through and count them all */
D1(continue);
break;
} }
} }