aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-20 15:57:25 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-20 15:57:25 -0400
commit293ffd5fd340428276fbbd24ce7b98bf6728466b (patch)
treec5dffe6de35a8625bcfc13275b47385741840635 /fs/btrfs/disk-io.c
parent313a013bb927cfba849b1bb746e9112ba856e43a (diff)
Btrfs: change dir-test to insert inode_items
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 1849a99690c..bacaa38ea82 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -226,6 +226,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans, struct
226 226
227 ret = btrfs_del_root(trans, root->fs_info->tree_root, &snap_key); 227 ret = btrfs_del_root(trans, root->fs_info->tree_root, &snap_key);
228 BUG_ON(ret); 228 BUG_ON(ret);
229 root->fs_info->generation = root->root_key.offset + 1;
229 230
230 return ret; 231 return ret;
231} 232}
@@ -328,6 +329,7 @@ struct btrfs_root *open_ctree(char *filename, struct btrfs_super_block *super)
328 root->commit_root = root->node; 329 root->commit_root = root->node;
329 root->node->count++; 330 root->node->count++;
330 root->ref_cows = 1; 331 root->ref_cows = 1;
332 root->fs_info->generation = root->root_key.offset + 1;
331 return root; 333 return root;
332} 334}
333 335