aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index c479d71e2869..c0bb6b9ac4c6 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -2392,8 +2392,13 @@ struct extent_buffer *btrfs_init_new_buffer(struct btrfs_trans_handle *trans,
2392 btrfs_tree_lock(buf); 2392 btrfs_tree_lock(buf);
2393 clean_tree_block(trans, root, buf); 2393 clean_tree_block(trans, root, buf);
2394 btrfs_set_buffer_uptodate(buf); 2394 btrfs_set_buffer_uptodate(buf);
2395 set_extent_dirty(&trans->transaction->dirty_pages, buf->start, 2395 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) {
2396 set_extent_dirty(&root->dirty_log_pages, buf->start,
2397 buf->start + buf->len - 1, GFP_NOFS);
2398 } else {
2399 set_extent_dirty(&trans->transaction->dirty_pages, buf->start,
2396 buf->start + buf->len - 1, GFP_NOFS); 2400 buf->start + buf->len - 1, GFP_NOFS);
2401 }
2397 trans->blocks_used++; 2402 trans->blocks_used++;
2398 return buf; 2403 return buf;
2399} 2404}