xfs: refactor xfs_file_fsync
authorChristoph Hellwig <hch@lst.de>
Sat, 23 Jan 2021 00:48:25 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:54:52 +0000 (16:54 -0800)
commitf22c7f87777361f94aa17f746fbadfa499248dc8
tree59cc1f8f3231b7e8eac82a82373e096acb3d613a
parent5b0ad7c2a52d4fdfec86a2c29096701783f46719
xfs: refactor xfs_file_fsync

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>
fs/xfs/xfs_file.c