xfs: attribute scrub should use seen_enough to pass error values
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 5 Jul 2019 17:29:54 +0000 (10:29 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 5 Jul 2019 17:29:54 +0000 (10:29 -0700)
commit2c3b83d7ca6d73b9478afc86c89377c15a90b9ed
treec56bbb3222576852670f1413c741a12537e8861d
parentbf3cb394479210a9ebcf8fef7a7f8fcabc7b9928
xfs: attribute scrub should use seen_enough to pass error values

When we're iterating all the attributes using the built-in xattr
iterator, we can use the seen_enough variable to pass error codes back
to the main scrub function instead of flattening them into 0/1.  This
will be used in a more exciting fashion in upcoming patches.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_attr.h
fs/xfs/scrub/attr.c