]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: refactor xfs_file_fsync
authorChristoph Hellwig <hch@lst.de>
Fri, 29 Jul 2022 16:16:01 +0000 (18:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Aug 2022 10:00:50 +0000 (12:00 +0200)
commit41fbfdaba94ae78a91c440d3ca6ad5b890e28ffa
tree027be110f44c2b933086e18eae5fe6547ae73300
parentaadc39fd5b6d43e6d96a368d9f651d01598a4ec7
xfs: refactor xfs_file_fsync

commit f22c7f87777361f94aa17f746fbadfa499248dc8 upstream.

[backported for dependency]

Factor out the log syncing logic into two helpers to make the code easier
to read and more maintainable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_file.c