]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d3659f38e5672b0e48207ca21bb65b41cb8e1be
tree114df3b404f783beb9488441ca467aadf96d4ff3
parent62d609f93c7ce2288bac4cbe187557a40cc4541d
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