Btrfs-progs: only build space info's for the main flags
authorJosef Bacik <jbacik@fb.com>
Mon, 26 Jan 2015 01:41:19 +0000 (17:41 -0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 9 Feb 2015 19:53:15 +0000 (14:53 -0500)
commitbce7dbba2859a47554c122eae32ead87e6a6510a
tree82594963a83f0b4497fb6185dab6a2c9253c9adc
parent797a937e5dd8db0092add633a80f3cd698e182df
Btrfs-progs: only build space info's for the main flags

Hitting enospc problems with a really corrupt fs uncovered the fact that we
match any flag in a block group when creating space info's.  This is a problem
if we have a raid level set, we'll end up with only one space info that covers
metadata and data because they share a raid level.  We don't want this, we want
to separate out the data and metadata space infos, so mask off the raid level
and only use the main flags.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
extent-tree.c