From: Aneesh Kumar K.V Date: Fri, 5 Jun 2009 05:00:26 +0000 (-0400) Subject: ext4: Avoid leaking blocks after a block allocation failure X-Git-Tag: v2.6.31-rc1~396^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1938a150c25bf7c2c47182e753a1038945b70b0e;p=pandora-kernel.git ext4: Avoid leaking blocks after a block allocation failure We should add inode to the orphan list in the same transaction as block allocation. This ensures that if we crash after a failed block allocation and before we do a vmtruncate we don't leak block (ie block marked as used in bitmap but not claimed by the inode). Signed-off-by: Aneesh Kumar K.V CC: Jan Kara Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed