On Fri, Jul 13, 2018 at 11:18:31AM +0200, Carlos Maiolino wrote: > No significant changes, just silence a couple of sparse errors. > > Signed-off-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx> > --- > fs/xfs/libxfs/xfs_ag_resv.h | 2 +- > fs/xfs/libxfs/xfs_ialloc.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/xfs/libxfs/xfs_ag_resv.h b/fs/xfs/libxfs/xfs_ag_resv.h > index 4619b554ee90..dc953fc84b2f 100644 > --- a/fs/xfs/libxfs/xfs_ag_resv.h > +++ b/fs/xfs/libxfs/xfs_ag_resv.h > @@ -28,7 +28,7 @@ xfs_ag_resv_rmapbt_alloc( > struct xfs_mount *mp, > xfs_agnumber_t agno) > { > - struct xfs_alloc_arg args = {0}; > + struct xfs_alloc_arg args = { NULL }; > struct xfs_perag *pag; > > args.len = 1; > diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c > index 0d968e8143aa..0680fea1d47d 100644 > --- a/fs/xfs/libxfs/xfs_ialloc.c > +++ b/fs/xfs/libxfs/xfs_ialloc.c > @@ -2539,7 +2539,7 @@ xfs_agi_verify( > return __this_address; > > for (i = 0; i < XFS_AGI_UNLINKED_BUCKETS; i++) { > - if (agi->agi_unlinked[i] == NULLAGINO) > + if (be32_to_cpu(agi->agi_unlinked[i]) == NULLAGINO) iirc there's enough macro magic in the kernel that be32_to_cpu(NULLAGINO) will get encoded as a constant so we don't have to byteswap every bucket in the agi_unlinked array. --D > continue; > if (!xfs_verify_ino(mp, be32_to_cpu(agi->agi_unlinked[i]))) > return __this_address; > -- > 2.14.3 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html