diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-20 15:57:25 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-20 15:57:25 -0400 |
commit | ab61081c6c29bac69c5d3ea47cbd3c4352f79aea (patch) | |
tree | 54213389ddfb011c0babc341196db4025ee2e681 /disk-io.c | |
parent | 57b80d980d8f3a6fb8629e74c6647ab8496d76df (diff) |
change dir-test to insert inode_items
Diffstat (limited to 'disk-io.c')
-rw-r--r-- | disk-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -226,6 +226,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans, struct ret = btrfs_del_root(trans, root->fs_info->tree_root, &snap_key); BUG_ON(ret); + root->fs_info->generation = root->root_key.offset + 1; return ret; } @@ -328,6 +329,7 @@ struct btrfs_root *open_ctree(char *filename, struct btrfs_super_block *super) root->commit_root = root->node; root->node->count++; root->ref_cows = 1; + root->fs_info->generation = root->root_key.offset + 1; return root; } |