Skip to content

Commit 3d129e1

Browse files
committed
xfs: fix backwards endian conversion in scrub
Fix a backwards endian conversion of a constant. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
1 parent c1a4447 commit 3d129e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/scrub/agheader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ xchk_agf_xref_cntbt(
399399
if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur))
400400
return;
401401
if (!have) {
402-
if (agf->agf_freeblks != be32_to_cpu(0))
402+
if (agf->agf_freeblks != cpu_to_be32(0))
403403
xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp);
404404
return;
405405
}

0 commit comments

Comments
 (0)