diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-12-10 20:32:51 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-12-10 20:32:51 -0500 |
commit | 0403e47ee26f26e960ee9038552bc89df4a1fb3d (patch) | |
tree | 08280f23e5cadcf9610f8b80ad1de2c27059aed8 /fs/btrfs/disk-io.c | |
parent | 459931eca5f4b8c9ad259d07cc1ca49afed54804 (diff) | |
download | lwn-0403e47ee26f26e960ee9038552bc89df4a1fb3d.tar.gz lwn-0403e47ee26f26e960ee9038552bc89df4a1fb3d.zip |
Btrfs: Add checking of csum tree in balancing code
This updates the space balancing code for the
new checksum format.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
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 c72f4f3b912c..6f042de1ac43 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1097,6 +1097,8 @@ struct btrfs_root *btrfs_read_fs_root_no_name(struct btrfs_fs_info *fs_info, return fs_info->chunk_root; if (location->objectid == BTRFS_DEV_TREE_OBJECTID) return fs_info->dev_root; + if (location->objectid == BTRFS_CSUM_TREE_OBJECTID) + return fs_info->csum_root; root = radix_tree_lookup(&fs_info->fs_roots_radix, (unsigned long)location->objectid); |