From: Darrick J. Wong Date: Thu, 4 Jun 2026 06:09:00 +0000 (-0700) Subject: xfs_scrub: fix inverted return value from ptvar_get X-Git-Tag: v7.1.0~49 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=353333f0f3ffe80a4e228519919000fa7432277f;p=xfsprogs-dev.git xfs_scrub: fix inverted return value from ptvar_get Codex noticed that this callsite to ptvar_get got the sign of the error code backwards, unlike all the other callers. Fix that. Cc: linux-xfs@vger.kernel.org # v6.10.0 Fixes: 4f4d99615d2377 ("xfs_scrub: improve thread scheduling repair items during phase 4") Signed-off-by: "Darrick J. Wong" Reviewed-by: Andrey Albershteyn --- diff --git a/scrub/phase3.c b/scrub/phase3.c index 046a42c1..93900fb8 100644 --- a/scrub/phase3.c +++ b/scrub/phase3.c @@ -68,9 +68,9 @@ defer_inode_repair( alist = ptvar_get(ictx->repair_ptlists, &ret); if (ret) { - str_liberror(ictx->ctx, ret, + str_liberror(ictx->ctx, -ret, _("getting per-thread inode repair list")); - return ret; + return -ret; } action_list_add(alist, aitem);