Revision be07c4ed4043ab8c26f222348136141335e47a2f authored by Duane Griffin on 22 October 2008, 21:15:03 UTC, committed by Linus Torvalds on 23 October 2008, 15:55:02 UTC
The __log_wait_for_space function sits in a loop checkpointing
transactions until there is sufficient space free in the journal.
However, if there are no transactions to be processed (e.g.  because the
free space calculation is wrong due to a corrupted filesystem) it will
never progress.

Check for space being required when no transactions are outstanding and
abort the journal instead of endlessly looping.

This patch fixes the bug reported by Sami Liedes at:
http://bugzilla.kernel.org/show_bug.cgi?id=10976

Signed-off-by: Duane Griffin <duaneg@dghda.com>
Tested-by: Sami Liedes <sliedes@cc.hut.fi>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9f818b4
History
File Mode Size
cpia2
dabusb
dsp56k
edgeport
emi26
emi62
ess
kaweth
keyspan
keyspan_pda
korg
sb16
sun
ttusb-budget
vicam
yamaha
.gitignore -rw-r--r-- 39 bytes
Makefile -rw-r--r-- 8.6 KB
WHENCE -rw-r--r-- 10.0 KB
atmsar11.HEX -rw-r--r-- 18.7 KB
ihex2fw.c -rw-r--r-- 6.2 KB
intelliport2.bin.ihex -rw-r--r-- 92.2 KB
ti_3410.fw.ihex -rw-r--r-- 37.0 KB
ti_5052.fw.ihex -rw-r--r-- 37.0 KB
tr_smctr.bin.ihex -rw-r--r-- 20.5 KB
whiteheat.HEX -rw-r--r-- 43.9 KB
whiteheat_loader.HEX -rw-r--r-- 11.8 KB
whiteheat_loader_debug.HEX -rw-r--r-- 17.2 KB

back to top