diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index ac8927bdc33d..d4132aad9ea1 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -919,6 +919,7 @@ static int __setup_root(u32 nodesize, u32 leafsize, u32 sectorsize, | |||
919 | atomic_set(&root->log_writers, 0); | 919 | atomic_set(&root->log_writers, 0); |
920 | root->log_batch = 0; | 920 | root->log_batch = 0; |
921 | root->log_transid = 0; | 921 | root->log_transid = 0; |
922 | root->last_log_commit = 0; | ||
922 | extent_io_tree_init(&root->dirty_log_pages, | 923 | extent_io_tree_init(&root->dirty_log_pages, |
923 | fs_info->btree_inode->i_mapping, GFP_NOFS); | 924 | fs_info->btree_inode->i_mapping, GFP_NOFS); |
924 | 925 | ||
@@ -1089,6 +1090,7 @@ int btrfs_add_log_tree(struct btrfs_trans_handle *trans, | |||
1089 | WARN_ON(root->log_root); | 1090 | WARN_ON(root->log_root); |
1090 | root->log_root = log_root; | 1091 | root->log_root = log_root; |
1091 | root->log_transid = 0; | 1092 | root->log_transid = 0; |
1093 | root->last_log_commit = 0; | ||
1092 | return 0; | 1094 | return 0; |
1093 | } | 1095 | } |
1094 | 1096 | ||