From: Chris Mason Date: Tue, 16 Dec 2008 18:51:01 +0000 (-0500) Subject: Btrfs: delete checksum items before marking blocks free X-Git-Tag: v2.6.29-rc1~27^2~9^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcbdd4dcb9793b00b46ab023e9330922c8c7c54c;p=pandora-kernel.git Btrfs: delete checksum items before marking blocks free Btrfs maintains a cache of blocks available for allocation in ram. The code that frees extents was marking the extents free and then deleting the checksum items. This meant it was possible the extent would be reallocated before the checksum item was actually deleted, leading to races and other problems as the checksums were updated for the newly allocated extent. The fix is to delete the checksum before marking the extent free. Signed-off-by: Chris Mason --- Reading git-diff-tree failed