]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_scrub: fix xfrog_scrub_metadata error reporting
authorDarrick J. Wong <djwong@kernel.org>
Mon, 28 Feb 2022 18:21:49 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 30 Mar 2022 03:21:50 +0000 (20:21 -0700)
commit08bf2ff06d89cf348b05ff8b95c474b2c48554ac
tree615156e16c0ce63e654bb79b9baff93a20795315
parent6b4ec98f610f1a5c23e9092b2ab3886d59d5fd3e
xfs_scrub: fix xfrog_scrub_metadata error reporting

Commit de5d20ec converted xfrog_scrub_metadata to return negative error
codes directly, but forgot to fix up the str_errno calls to use
str_liberror.  This doesn't result in incorrect error reporting
currently, but (a) the calls in the switch statement are inconsistent,
and (b) this will matter in future patches where we can call library
functions in between xfrog_scrub_metadata and str_liberror.

Fixes: de5d20ec ("libfrog: convert scrub.c functions to negative error codes")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
scrub/scrub.c