libxfs: Fix a couple of sparse complaintis
authorCarlos Maiolino <cmaiolino@redhat.com>
Tue, 17 Jul 2018 21:25:20 +0000 (14:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 17 Jul 2018 21:25:58 +0000 (14:25 -0700)
commit5089eafffba2ed444789e5d25c7c0dfd62595713
tree00672d93056d7715c61987d451d55e6ae01ac9dd
parente4e542a683c16945533d700339a0aec261d39f34
libxfs: Fix a couple of sparse complaintis

No significant changes, just silence a couple of sparse errors.

Using cpu_to_be32(NULLAGINO), the NULLAGINO constant will be encoded in
BE as a constant, avoiding a BE -> CPU conversion every iteraction of
the loop, if be32_to_cpu(agi->agi_unlinked[i]) was used instead.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_ag_resv.h
fs/xfs/libxfs/xfs_ialloc.c