From: Jan Kara Date: Wed, 17 Jun 2009 23:26:24 +0000 (-0700) Subject: ext3: make sure inode is deleted from orphan list after truncate X-Git-Tag: v2.6.31-rc1~247 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef43618a47179b41e7203a624f2c7445e7da488c;p=pandora-kernel.git ext3: make sure inode is deleted from orphan list after truncate As Ted pointed out, it can happen that ext3_truncate() returns without removing inode from orphan list. This way we could in some rare cases (like when we get ENOMEM from an allocation in ext3_truncate called because of failed ext3_write_begin) leave the inode on orphan list and that triggers assertion failure on umount. So make ext3_truncate() always remove inode from in-memory orphan list. Cc: Theodore Ts'o Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed