xfs: refactor the tail of xfs_writepage_map
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Jul 2018 05:26:04 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:04 +0000 (22:26 -0700)
commit8e1f065bea1b1c128c92ef7e386779a23cd5d342
tree39edbec11739c407a9d93f6712cdcfa52a70a007
parent1b65d3dd2d5e938b035b2ad73d0b47f35b5ef9a0
xfs: refactor the tail of xfs_writepage_map

Rejuggle how we deal with the different error vs non-error and have
ioends vs not have ioend cases to keep the fast path streamlined, and
the duplicate code at a minimum.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_aops.c