diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-12 10:43:05 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-12 10:43:05 -0400 |
commit | 8352d8a473ac84bf7a1c69690b626946d744ca58 (patch) | |
tree | 58686bb1de3d994a881d6176dafd7c16dfadeeca /fs/btrfs/transaction.c | |
parent | 7eccb903a817e890c947ba4bc90c6a9af9b4219a (diff) |
Btrfs: add disk ioctl, mostly working
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 3a15943ea8ed..8740752f3845 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -116,7 +116,13 @@ int btrfs_commit_tree_roots(struct btrfs_trans_handle *trans, | |||
116 | struct btrfs_fs_info *fs_info = root->fs_info; | 116 | struct btrfs_fs_info *fs_info = root->fs_info; |
117 | struct btrfs_root *tree_root = fs_info->tree_root; | 117 | struct btrfs_root *tree_root = fs_info->tree_root; |
118 | struct btrfs_root *extent_root = fs_info->extent_root; | 118 | struct btrfs_root *extent_root = fs_info->extent_root; |
119 | struct btrfs_root *dev_root = fs_info->dev_root; | ||
119 | 120 | ||
121 | if (btrfs_super_device_root(fs_info->disk_super) != | ||
122 | bh_blocknr(dev_root->node)) { | ||
123 | btrfs_set_super_device_root(fs_info->disk_super, | ||
124 | bh_blocknr(dev_root->node)); | ||
125 | } | ||
120 | while(1) { | 126 | while(1) { |
121 | old_extent_block = btrfs_root_blocknr(&extent_root->root_item); | 127 | old_extent_block = btrfs_root_blocknr(&extent_root->root_item); |
122 | if (old_extent_block == bh_blocknr(extent_root->node)) | 128 | if (old_extent_block == bh_blocknr(extent_root->node)) |