btrfs: use raid_attr table for btrfs_bg_type_to_factor
authorDavid Sterba <dsterba@suse.com>
Fri, 17 May 2019 09:43:31 +0000 (11:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:57 +0000 (13:34 +0200)
commit44b28adafd1f814fbde8b53a99eee83f3b31b2d9
tree312111c38de1ae8f9bc2c4b4ec2b23cc6feb4dca
parent6079e12cdb8f9afb02b9f4f3e4d13c076e1e99e9
btrfs: use raid_attr table for btrfs_bg_type_to_factor

The factor is the number of copies.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c