diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:19:22 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:56 -0400 |
commit | 19c00ddcc31ad4bdfb86b57085e06d6135b9b1d7 (patch) | |
tree | a48cbaac47070057912c1b35d270b61b7e14386c /fs/btrfs/extent-tree.c | |
parent | 0f82731fc56448c2733f58e1f5db6c2cbfc90652 (diff) | |
download | lwn-19c00ddcc31ad4bdfb86b57085e06d6135b9b1d7.tar.gz lwn-19c00ddcc31ad4bdfb86b57085e06d6135b9b1d7.zip |
Btrfs: Add back metadata checksumming
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index e4e68ea96483..6b2f2b414fa1 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -1178,6 +1178,10 @@ struct extent_buffer *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, btrfs_set_buffer_uptodate(buf); set_extent_dirty(&trans->transaction->dirty_pages, buf->start, buf->start + buf->len - 1, GFP_NOFS); + set_extent_bits(&BTRFS_I(root->fs_info->btree_inode)->extent_tree, + buf->start, buf->start + buf->len - 1, + EXTENT_CSUM, GFP_NOFS); + buf->flags |= EXTENT_CSUM; btrfs_set_buffer_defrag(buf); trans->blocks_used++; return buf; |