diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 5cf3aa7b125c..a272bfd74ea0 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1276,8 +1276,10 @@ struct btrfs_root *btrfs_read_fs_root_no_radix(struct btrfs_root *tree_root, | |||
1276 | root->commit_root = btrfs_root_node(root); | 1276 | root->commit_root = btrfs_root_node(root); |
1277 | BUG_ON(!root->node); | 1277 | BUG_ON(!root->node); |
1278 | out: | 1278 | out: |
1279 | if (location->objectid != BTRFS_TREE_LOG_OBJECTID) | 1279 | if (location->objectid != BTRFS_TREE_LOG_OBJECTID) { |
1280 | root->ref_cows = 1; | 1280 | root->ref_cows = 1; |
1281 | btrfs_check_and_init_root_item(&root->root_item); | ||
1282 | } | ||
1281 | 1283 | ||
1282 | return root; | 1284 | return root; |
1283 | } | 1285 | } |