From: Christoph Hellwig Date: Mon, 7 Jul 2025 12:53:13 +0000 (+0200) Subject: xfs: remove the call to sync_blockdev in xfs_configure_buftarg X-Git-Tag: v6.16-rc7~35^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9b1e348cff7ed13e30886de7a72e1fa0e235863;p=thirdparty%2Flinux.git 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: Christoph Hellwig Reviewed-by: John Garry Signed-off-by: Carlos Maiolino --- diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index ba5bd6031ece3..558568f78514d 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -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