diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-04-25 16:53:30 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:02 -0400 |
commit | 8f18cf13396caae5a3d7ae91201cfb15181a9642 (patch) | |
tree | ff4bfc2e7f45f10d176b969408cdb469ae3f7194 /fs/btrfs/disk-io.c | |
parent | 5e478dc9828ad33d7b08dcdf277e13f14a7c1be7 (diff) |
Btrfs: Make the resizer work based on shrinking and growing devices
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 71838264ca6b..a9ce491d279b 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -818,6 +818,10 @@ struct btrfs_root *btrfs_read_fs_root_no_name(struct btrfs_fs_info *fs_info, | |||
818 | return fs_info->tree_root; | 818 | return fs_info->tree_root; |
819 | if (location->objectid == BTRFS_EXTENT_TREE_OBJECTID) | 819 | if (location->objectid == BTRFS_EXTENT_TREE_OBJECTID) |
820 | return fs_info->extent_root; | 820 | return fs_info->extent_root; |
821 | if (location->objectid == BTRFS_CHUNK_TREE_OBJECTID) | ||
822 | return fs_info->chunk_root; | ||
823 | if (location->objectid == BTRFS_DEV_TREE_OBJECTID) | ||
824 | return fs_info->dev_root; | ||
821 | 825 | ||
822 | root = radix_tree_lookup(&fs_info->fs_roots_radix, | 826 | root = radix_tree_lookup(&fs_info->fs_roots_radix, |
823 | (unsigned long)location->objectid); | 827 | (unsigned long)location->objectid); |