aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/nodemgmt.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-10-13 06:32:16 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2007-10-13 06:32:16 -0400
commita8c68f32644fc8942b25af9239967dd01be621fa (patch)
tree220d4fdd0e27266d893c224c763646e201a40463 /fs/jffs2/nodemgmt.c
parent2665ea842dc9f4c04bdb57f8b7c2023759ac8c85 (diff)
[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>
Diffstat (limited to 'fs/jffs2/nodemgmt.c')
-rw-r--r--fs/jffs2/nodemgmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c
index 1b79534e9d4..a0313fa8748 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)
749 nr_very_dirty++; 749 nr_very_dirty++;
750 if (nr_very_dirty == c->vdirty_blocks_gctrigger) { 750 if (nr_very_dirty == c->vdirty_blocks_gctrigger) {
751 ret = 1; 751 ret = 1;
752 D1(break); 752 /* In debug mode, actually go through and count them all */
753 D1(continue);
754 break;
753 } 755 }
754 } 756 }
755 757