btrfs: Allow barrier_all_devices to do chunk level device check
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 27 Jun 2017 09:28:40 +0000 (17:28 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:02 +0000 (16:12 +0200)
commitd10b82fe29cf3730ab7c1a487f0f62f10af5d301
tree64e360bdd559b99f0402ac3369f3545a9e8e7a7e
parentb382cfe889da5d39aeceb79e261f862c3a53eafb
btrfs: Allow barrier_all_devices to do chunk level device check

The last user of num_tolerated_disk_barrier_failures is
barrier_all_devices().
But it can be easily changed to the new per-chunk degradable check
framework.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c