]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: reflink should force the log out if mounted with wsync
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Oct 2022 06:28:41 +0000 (11:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Oct 2022 08:20:34 +0000 (10:20 +0200)
commitbf04ee58c92d6df4edd958f9a5a2ffb2d28c3121
tree03f776e00191754a00ab87bdd4c6a8d677c0bb2e
parent487a3ae622490ce27b58d12d2f1d5ca7043741ef
xfs: reflink should force the log out if mounted with wsync

commit 8ec8d583e2441af9e966b5d58f3b2ecb6d0da429 upstream.

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>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_file.c