Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8c68f32 authored by David Woodhouse's avatar David Woodhouse
Browse files

[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: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 2665ea84
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}