btrfs_read_block_groups: Use enums to index
authorchandan <chandan@linux.vnet.ibm.com>
Tue, 16 Jul 2013 06:58:56 +0000 (12:28 +0530)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 11:57:38 +0000 (07:57 -0400)
commit1095cc0d924e1c61fb34e0bfcec049d1fbcca77c
treed90cde159b3d0819d4628ceda70f1fee06eb4236
parent3cae210fa529d69cb25c2a3c491f29dab687b245
btrfs_read_block_groups: Use enums to index

 btrfs_space_info->block_groups.

The current code uses integer literals to index
btrfs_space_info->block_groups[] array. Instead use corresponding
enums from 'enum btrfs_raid_types'.

Signed-off-by: chandan <chandan@linux.vnet.ibm.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent-tree.c