[PATCH] ext3: fix log_do_checkpoint() assertion failure

Fix possible false assertion failure in log_do_checkpoint(). We might fail
to detect that we actually made a progress when cleaning up the checkpoint
lists if we don't retry after writing something to disk. The patch was
confirmed to fix observed assertion failures for several users.

When we flushed some buffers we need to retry scanning the list.
Otherwise we can fail to detect our progress.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Jan Kara and committed by
Linus Torvalds
00ea8145 1e86d1c6

+3 -1
+3 -1
fs/jbd/checkpoint.c
··· 339 339 } 340 340 } while (jh != last_jh && !retry); 341 341 342 - if (batch_count) 342 + if (batch_count) { 343 343 __flush_batch(journal, bhs, &batch_count); 344 + retry = 1; 345 + } 344 346 345 347 /* 346 348 * If someone cleaned up this transaction while we slept, we're