From: Jan Kara Date: Mon, 12 Jul 2010 19:04:31 +0000 (+0200) Subject: ext3: Avoid filesystem corruption after a crash under heavy delete load X-Git-Tag: v2.6.36-rc1~502^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f25f624263445785b94f39739a6339ba9ed3275d;p=pandora-kernel.git ext3: Avoid filesystem corruption after a crash under heavy delete load It can happen that ext3_free_branches calls ext3_forget() for an indirect block in an earlier transaction than a transaction in which we clear pointer to this indirect block. Thus if we crash before a transaction clearing the block pointer is committed, we will see indirect block pointing to already freed blocks and complain during orphan list cleanup. The fix is simple: Make sure ext3_forget() is called in the transaction doing block pointer clearing. This is a backport of an ext4 fix by Amir G. Signed-off-by: Jan Kara --- Reading git-diff-tree failed