summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans_buf.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2022-01-31 22:20:10 +0100
committerDarrick J. Wong <djwong@kernel.org>2022-02-01 23:14:48 +0100
commitcea267c235e1b1ec3bfc415f6bd420289bcb3bc9 (patch)
tree56b0df7dc5a9fff9cbb5b476fab4121358ce80f9 /fs/xfs/xfs_trans_buf.c
parentxfs: move xfs_update_prealloc_flags() to xfs_pnfs.c (diff)
downloadlinux-cea267c235e1b1ec3bfc415f6bd420289bcb3bc9.tar.xz
linux-cea267c235e1b1ec3bfc415f6bd420289bcb3bc9.zip
xfs: ensure log flush at the end of a synchronous fallocate call
Since we've started treating fallocate more like a file write, we should flush the log to disk if the user has asked for synchronous writes either by setting it via fcntl flags, or inode flags, or with the sync mount option. We've already got a helper for this, so use it. [The original patch by Darrick was massaged by Dave to fit this patchset] Signed-off-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_trans_buf.c')
0 files changed, 0 insertions, 0 deletions