xfs: split the unaligned DIO write code out
authorDave Chinner <dchinner@redhat.com>
Sat, 23 Jan 2021 18:06:30 +0000 (10:06 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 1 Feb 2021 17:47:19 +0000 (09:47 -0800)
commitcaa89dbc4303d9bc7caa6c1124a84aa3efa47e00
treeeae35360e9f3d4fbd6beceada74aeaf3cfb922ca
parent896f72d067a5e9a90d2178b311bb89a18c7b5cfb
xfs: split the unaligned DIO write code out

The unaligned DIO write path is more convolted than the normal path,
and we are about to make it more complex. Keep the block aligned
fast path dio write code trim and simple by splitting out the
unaligned DIO code from it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
[hch: rebased, fixed a few minor nits]
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>
fs/xfs/xfs_file.c