Skip to content

Commit d9b1e34

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
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 <[email protected]> Reviewed-by: John Garry <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
1 parent a578a8e commit d9b1e34

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

fs/xfs/xfs_buf.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,14 +1738,9 @@ xfs_configure_buftarg(
17381738
return -EINVAL;
17391739
}
17401740

1741-
/*
1742-
* Flush the block device pagecache so our bios see anything dirtied
1743-
* before mount.
1744-
*/
17451741
if (bdev_can_atomic_write(btp->bt_bdev))
17461742
xfs_configure_buftarg_atomic_writes(btp);
1747-
1748-
return sync_blockdev(btp->bt_bdev);
1743+
return 0;
17491744
}
17501745

17511746
int

0 commit comments

Comments
 (0)