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" <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
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);