diff options
author | Nikolay Borisov <nborisov@suse.com> | 2019-05-14 12:54:38 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-01 13:34:53 +0200 |
commit | ddb93784692fd41d7f1e74cf8b441428b7e57a64 (patch) | |
tree | 66dd1b7c412c1b434919cec1a0ec7b8eb7a00205 /fs/btrfs/dev-replace.c | |
parent | btrfs: fiemap: preallocate ulists for btrfs_check_shared (diff) | |
download | linux-ddb93784692fd41d7f1e74cf8b441428b7e57a64.tar.xz linux-ddb93784692fd41d7f1e74cf8b441428b7e57a64.zip |
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>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index ee0989c7e3a9..1b83787176f9 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -201,7 +201,7 @@ static int btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, return PTR_ERR(bdev); } - filemap_write_and_wait(bdev->bd_inode->i_mapping); + sync_blockdev(bdev); devices = &fs_info->fs_devices->devices; list_for_each_entry(device, devices, dev_list) { |