Home
last modified time | relevance | path

Searched hist:dcbdd4dcb9793b00b46ab023e9330922c8c7c54c (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/fs/btrfs/
H A Dfile-item.cdiff dcbdd4dcb9793b00b46ab023e9330922c8c7c54c Tue Dec 16 12:51:01 CST 2008 Chris Mason <chris.mason@oracle.com> 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 <chris.mason@oracle.com>
H A Dextent-tree.cdiff dcbdd4dcb9793b00b46ab023e9330922c8c7c54c Tue Dec 16 12:51:01 CST 2008 Chris Mason <chris.mason@oracle.com> 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 <chris.mason@oracle.com>