]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix xfs_rmap_has_other_keys usage of ECANCELED
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Mar 2020 17:37:53 +0000 (10:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Mar 2020 14:58:12 +0000 (07:58 -0700)
commitb3f8a27a3bcf758cbf144bc4d0817fa2193108f0
tree9890920a829b1f0fbb0e73d6d56734c63b17432f
parent181bae075bc2216bbff3ebc98c018e8fc5ccbb24
xfs: fix xfs_rmap_has_other_keys usage of ECANCELED

In d984be782715e, we converted all ITER_ABORT users to use ECANCELED
instead, but we forgot to teach xfs_rmap_has_other_keys not to return
that magic value to callers.  Fix it now by using ECANCELED both to
abort the iteration and to signal that we found another reverse mapping.
This enables us to drop the separate boolean flag.

Fixes: d984be782715e ("xfs: remove all *_ITER_ABORT values")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_rmap.c