btrfs: use raid_attr in btrfs_chunk_max_errors
authorDavid Sterba <dsterba@suse.com>
Fri, 17 May 2019 09:43:22 +0000 (11:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:56 +0000 (13:34 +0200)
commitfc9a2ac77c05ba060dcfb084a752aa3ee37f9e2a
tree7da70900a9dff927d21178423b6077aefc5bb241
parent9fa02ac75ba14683b341ec7430202cccfc8c3fab
btrfs: use raid_attr in btrfs_chunk_max_errors

The number of tolerated failures is stored in the raid_attr table, use
it.

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