Commit d9b1e348 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Carlos Maiolino
Browse files

xfs: remove the call to sync_blockdev in xfs_configure_buftarg



This extra call is not needed as xfs_alloc_buftarg already calls
sync_blockdev.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJohn Garry <john.g.garry@oracle.com>
Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
parent a578a8ef
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1738,14 +1738,9 @@ xfs_configure_buftarg(
		return -EINVAL;
	}

	/*
	 * Flush the block device pagecache so our bios see anything dirtied
	 * before mount.
	 */
	if (bdev_can_atomic_write(btp->bt_bdev))
		xfs_configure_buftarg_atomic_writes(btp);

	return sync_blockdev(btp->bt_bdev);
	return 0;
}

int