Btrfs: Link block groups of different raid types
authorYan, Zheng <zheng.yan@oracle.com>
Sun, 16 May 2010 14:46:24 +0000 (10:46 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 May 2010 14:34:47 +0000 (10:34 -0400)
commitb742bb82f1676d50103ade0ba89bfb79debabe73
treeceac53988a3c158571fb91d54e3027403363fb47
parente40152ee1e1c7a63f4777791863215e3faa37a86
Btrfs: Link block groups of different raid types

The size of reserved space is stored in space_info. If block groups
of different raid types are linked to separate space_info, changing
allocation profile will corrupt reserved space accounting.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/super.c