1
0
Fork 0

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>
hifive-unleashed-5.1
Darrick J. Wong 2019-02-25 09:36:36 -08:00
parent c1a4447f5e
commit 3d129e1be3
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ xchk_agf_xref_cntbt(
if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur))
return;
if (!have) {
if (agf->agf_freeblks != be32_to_cpu(0))
if (agf->agf_freeblks != cpu_to_be32(0))
xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp);
return;
}