From: Chris Mason Date: Wed, 10 Dec 2008 14:10:46 +0000 (-0500) Subject: Btrfs: Delete csum items when freeing extents X-Git-Tag: v2.6.29-rc1~27^2~9^2~27 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=459931eca5f4b8c9ad259d07cc1ca49afed54804;p=pandora-kernel.git Btrfs: Delete csum items when freeing extents This finishes off the new checksumming code by removing csum items for extents that are no longer in use. The trick is doing it without racing because a single csum item may hold csums for more than one extent. Extra checks are added to btrfs_csum_file_blocks to make sure that we are using the correct csum item after dropping locks. A new btrfs_split_item is added to split a single csum item so it can be split without dropping the leaf lock. This is used to remove csum bytes from the middle of an item. Signed-off-by: Chris Mason --- Reading git-diff-tree failed