]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: reflink should force the log out if mounted with wsync
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Apr 2020 18:45:37 +0000 (11:45 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 6 Apr 2020 15:44:39 +0000 (08:44 -0700)
commit8ec8d583e2441af9e966b5d58f3b2ecb6d0da429
tree250a258574303f695f5910bea2f26d9ce84b8210
parent626a7c1e590b71b9615350a4141fbd203a8cd4d3
xfs: reflink should force the log out if mounted with wsync

Reflink should force the log out to disk if the filesystem was mounted
with wsync, the same as most other operations in xfs.

[Note: XFS_MOUNT_WSYNC is set when the admin mounts the filesystem
with either the 'wsync' or 'sync' mount options, which effectively means
that we're classifying reflink/dedupe as IO operations and making them
synchronous when required.]

Fixes: 5ce46be0f3156 ("xfs: remove xfs_reflink_remap_range")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
[darrick: add more to the changelog]
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_file.c