xfs: factor out buffer I/O failure code
authorBrian Foster <bfoster@redhat.com>
Wed, 6 May 2020 20:25:19 +0000 (13:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 7 May 2020 15:27:45 +0000 (08:27 -0700)
commit54b3b1f619efbc838870735db2ddde9450f93a8f
treebe5c37a3edd1b4e1461b6c9a7916733e95571243
parentcb6ad0993eb8973533235de8a35aa4b9c872d733
xfs: factor out buffer I/O failure code

We use the same buffer I/O failure code in a few different places.
It's not much code, but it's not necessarily self-explanatory.
Factor it into a helper and document it in one place.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_inode.c