]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: remove XFS_PREALLOC_SYNC
authorDave Chinner <dchinner@redhat.com>
Sat, 18 Mar 2023 10:15:18 +0000 (12:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:30:06 +0000 (13:30 +0100)
commit35f049abbae3954fe2c3d57d62fe6624d9b29df6
treefe7f23906a89d273006ebcde52f86eefcc3ba972
parentc84fb2962680fa85d9916d67026e4f01ea4cadca
xfs: remove XFS_PREALLOC_SYNC

commit 472c6e46f589c26057596dcba160712a5b3e02c5 upstream.

[partial backport for dependency -
 xfs_ioc_space() still uses XFS_PREALLOC_SYNC]

Callers can acheive the same thing by calling xfs_log_force_inode()
after making their modifications. There is no need for
xfs_update_prealloc_flags() to do this.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_file.c
fs/xfs/xfs_pnfs.c