]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac480d0a0fac63591df9272ed16bf5e2f10ffe79
tree00672d93056d7715c61987d451d55e6ae01ac9dd
parentada061a3a66b183e7755ee5fcbaa91221d5ae7d5
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