Commit 7380e8fe authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: don't return _QUERY_ABORT from xfs_rmap_has_other_keys



The xfs_rmap_has_other_keys helper aborts the iteration as soon as it
has an answer.  Don't let this abort leak out to callers.

Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
parent c94613fe
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2540,8 +2540,11 @@ xfs_rmap_has_other_keys(

	error = xfs_rmap_query_range(cur, &low, &high,
			xfs_rmap_has_other_keys_helper, &rks);
	*has_rmap = rks.has_rmap;
	if (error < 0)
		return error;

	*has_rmap = rks.has_rmap;
	return 0;
}

const struct xfs_owner_info XFS_RMAP_OINFO_SKIP_UPDATE = {