xfs: refactor xfs_buf_ioerror_fail_without_retry
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Sep 2020 17:55:44 +0000 (10:55 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 Sep 2020 03:52:38 +0000 (20:52 -0700)
commitf58d0ea956113f537e43517eccfa33878a30cc4e
tree25f39d47f0cdaf39b78101495346330e9b374574
parent6a7584b1d82b7b9fcce02ee7aeddc58f9cebbccc
xfs: refactor xfs_buf_ioerror_fail_without_retry

xfs_buf_ioerror_fail_without_retry is a somewhat weird function in
that it has two trivial checks that decide the return value, while
the rest implements a ratelimited warning.  Just lift the two checks
into the caller, and give the remainder a suitable 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