btrfs: wait part of the write_dev_flush() can be separated out
authorAnand Jain <anand.jain@oracle.com>
Tue, 13 Jun 2017 09:05:41 +0000 (17:05 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:04 +0000 (18:26 +0200)
commit4fc6441aac75893b4f32415f693d001f290d7d5b
treefc43e4a515f2b20d59d6f32f3faed902daee2923
parentcea7c8bf77209ba11350e9c6f541064c820a174c
btrfs: wait part of the write_dev_flush() can be separated out

Submit and wait parts of write_dev_flush() can be split into two
separate functions for better readability.

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