From: Yan Date: Wed, 7 Nov 2007 18:31:09 +0000 (-0500) Subject: Properly delete csum item in btrfs_truncate_in_trans. X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~416 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=008630c17cc5654e141c7fd24a3e737de643fec1;p=pandora-kernel.git Properly delete csum item in btrfs_truncate_in_trans. When 'item_end' is equal to 'inode->i_size', 'found_type' is updated and current item is skipped. This behavior is correct for extent item, but incorrect for csum item. For example, there is a csum item with 'offset == 0'. When deleting the inode, 'inode->i_size' is set to 0, so the csum item isn't deleted. Signed-off-by: Chris Mason --- Reading git-diff-tree failed