]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: simplify the xfs_buf_ioend_disposition calling convention
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Sep 2020 17:55:45 +0000 (10:55 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 Sep 2020 03:52:38 +0000 (20:52 -0700)
commit838195e89a3786527842180aede0e284fab943dc
tree34428a4eac5eeda3ced98a47f7e25f2e6c9c0b66
parentc2ef099805ce2f6e2cd999c835205e8f76f1880b
xfs: simplify the xfs_buf_ioend_disposition calling convention

Now that all the actual error handling is in a single place,
xfs_buf_ioend_disposition just needs to return true if took ownership of
the buffer, or false if not instead of the tristate.  Also move the
error check back in the caller to optimize for the fast path, and give
the function a better fitting 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