Skip to content

Commit

Permalink
[JFFS2] Don't count all 'very dirty' blocks except in debug mode
Browse files Browse the repository at this point in the history
... where we'll actually print the count in a debug message.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed Oct 13, 2007
1 parent 2665ea8 commit a8c68f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/jffs2/nodemgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit a8c68f3

Please sign in to comment.