]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c59334a17b1c34db1677dbc5575b44b252f61c0
treed90cde159b3d0819d4628ceda70f1fee06eb4236
parent390b7c76902403412db2c325f46c755f83020b4c
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