diff options
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, | |||
1178 | btrfs_set_buffer_uptodate(buf); | 1178 | btrfs_set_buffer_uptodate(buf); |
1179 | set_extent_dirty(&trans->transaction->dirty_pages, buf->start, | 1179 | set_extent_dirty(&trans->transaction->dirty_pages, buf->start, |
1180 | buf->start + buf->len - 1, GFP_NOFS); | 1180 | buf->start + buf->len - 1, GFP_NOFS); |
1181 | set_extent_bits(&BTRFS_I(root->fs_info->btree_inode)->extent_tree, | ||
1182 | buf->start, buf->start + buf->len - 1, | ||
1183 | EXTENT_CSUM, GFP_NOFS); | ||
1184 | buf->flags |= EXTENT_CSUM; | ||
1181 | btrfs_set_buffer_defrag(buf); | 1185 | btrfs_set_buffer_defrag(buf); |
1182 | trans->blocks_used++; | 1186 | trans->blocks_used++; |
1183 | return buf; | 1187 | return buf; |