summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2019-08-29 18:04:08 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2019-08-31 07:43:57 +0200
commit728bcaa3e0f9820e923dabe5e4c34e87100bb995 (patch)
treedf2f2127deb1e347774320e18953e0e5307b0786 /fs/xfs/scrub
parentxfs: reverse search directory freespace indexes (diff)
downloadlinux-728bcaa3e0f9820e923dabe5e4c34e87100bb995.tar.xz
linux-728bcaa3e0f9820e923dabe5e4c34e87100bb995.zip
xfs: make attr lookup returns consistent
Shortform, leaf and remote value attr value retrieval return different values for success. This makes it more complex to handle actual errors xfs_attr_get() as some errors mean success and some mean failure. Make the return values consistent for success and failure consistent for all attribute formats. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-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>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r--fs/xfs/scrub/attr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/scrub/attr.c b/fs/xfs/scrub/attr.c
index 361387026513..0edc7f8eb96e 100644
--- a/fs/xfs/scrub/attr.c
+++ b/fs/xfs/scrub/attr.c
@@ -163,8 +163,6 @@ xchk_xattr_listent(
args.valuelen = valuelen;
error = xfs_attr_get_ilocked(context->dp, &args);
- if (error == -EEXIST)
- error = 0;
if (!xchk_fblock_process_error(sx->sc, XFS_ATTR_FORK, args.blkno,
&error))
goto fail_xref;