btrfs: move dev stats accounting out of wait_dev_flush
authorDavid Sterba <dsterba@suse.com>
Thu, 15 Jun 2017 14:20:43 +0000 (16:20 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 21 Jun 2017 17:03:39 +0000 (19:03 +0200)
commit66b4993e95c17e0ee30f0d72f0d6e00e5c035a98
treefce92b32f9f89db6d795c4f47646ba8775bfc57f
parent2980d5745fa0beeaab4c22e25bea4faa54f7d9f7
btrfs: move dev stats accounting out of wait_dev_flush

We should really just wait in wait_dev_flush and let the caller decide
what to do with the error value.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c