]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7eb73dd3ce2716c8b20a369df7c27e226dd556d8
tree25f39d47f0cdaf39b78101495346330e9b374574
parentd27590117e2aa897eea178608f246d72dad9f93b
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