xfs: refactor the buf ioend disposition code
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Sep 2020 17:55:20 +0000 (10:55 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 Sep 2020 03:52:38 +0000 (20:52 -0700)
commit12e164aa1f9d82e8dc3b09ff211cfae8d6a8bfb3
tree114df3b404f783beb9488441ca467aadf96d4ff3
parent718ecc50359ec7a45c3195305ab998a46db491dc
xfs: refactor the buf ioend disposition code

Handle the no-error case in xfs_buf_iodone_error as well, and to clarify
the code rename the function, use the actual enum type as return value
and then switch on it in the callers.

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