xfs: allow merging ioends over append boundaries
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jun 2019 02:31:37 +0000 (19:31 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 30 Jun 2019 16:05:17 +0000 (09:05 -0700)
commit7dbae9fbde8a2d3accf4b89502d5557bf3905e73
tree91d3ab999a5cfb59657155b9e5d785f351f41c7b
parent0290d9c1e56fc9964c6a0fa42cce251aecee606a
xfs: allow merging ioends over append boundaries

There is no real problem merging ioends that go beyond i_size into an
ioend that doesn't.  We just need to move the append transaction to the
base ioend.  Also use the opportunity to use a real error code instead
of the magic 1 to cancel the transactions, and write a comment
explaining the scheme.

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