xfs: create iterator error codes
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 2 Jul 2019 16:39:38 +0000 (09:39 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 2 Jul 2019 16:40:05 +0000 (09:40 -0700)
commit5bb46e3e180d28c7ee6715f47c344be366a3fcc8
tree77742ba38d13667139519c36bc92662017c724fa
parent73d30d48749f883fbaaf68ef5d774e99ffafda5d
xfs: create iterator error codes

Currently, xfs doesn't have generic error codes defined for "stop
iterating"; we just reuse the XFS_BTREE_QUERY_* return values.  This
looks a little weird if we're not actually iterating a btree index.
Before we start adding more iterators, we should create general
XFS_ITER_{CONTINUE,ABORT} return values and define the XFS_BTREE_QUERY_*
ones from that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_btree.h
fs/xfs/libxfs/xfs_shared.h
fs/xfs/scrub/agheader.c
fs/xfs/scrub/repair.c
fs/xfs/xfs_dquot.c