]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: remove the call to sync_blockdev in xfs_configure_buftarg
authorChristoph Hellwig <hch@lst.de>
Mon, 7 Jul 2025 12:53:13 +0000 (14:53 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 8 Jul 2025 11:30:26 +0000 (13:30 +0200)
This extra call is not needed as xfs_alloc_buftarg already calls
sync_blockdev.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf.c

index ba5bd6031ece3c09e83f3bd9212db192cb0bdffc..558568f78514d17ddf1f4e56da2f11678f221e70 100644 (file)
@@ -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