btrfs: Don't opencode sync_blockdev in btrfs_init_dev_replace_tgtdev
authorNikolay Borisov <nborisov@suse.com>
Tue, 14 May 2019 10:54:38 +0000 (13:54 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:53 +0000 (13:34 +0200)
commitddb93784692fd41d7f1e74cf8b441428b7e57a64
tree66dd1b7c412c1b434919cec1a0ec7b8eb7a00205
parent5911c8fe05c54c9f74a6467650e6493e4808cd01
btrfs: Don't opencode sync_blockdev in btrfs_init_dev_replace_tgtdev

Using sync_blockdev makes it plain obvious what's happening. No
functional changes.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c