xfs: simplify the xfs_buf_ioend_disposition calling convention
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Sep 2020 17:55:45 +0000 (10:55 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 Sep 2020 03:52:38 +0000 (20:52 -0700)
commit70796c6b74c2aa49a1b341b7646c1498bd27ea81
tree34428a4eac5eeda3ced98a47f7e25f2e6c9c0b66
parent844c9358dfda7e6c0d1c1a524c704d992c34f64e
xfs: simplify the xfs_buf_ioend_disposition calling convention

Now that all the actual error handling is in a single place,
xfs_buf_ioend_disposition just needs to return true if took ownership of
the buffer, or false if not instead of the tristate.  Also move the
error check back in the caller to optimize for the fast path, and give
the function a better fitting name.

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_buf.c