summaryrefslogtreecommitdiff
path: root/fs/xfs/linux-2.6/xfs_iops.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2011-07-08 12:34:18 (GMT)
committerChristoph Hellwig <hch@lst.de>2011-07-08 12:34:18 (GMT)
commitdec58f1dfd30a3c3e9dadc808692f4e5cd922745 (patch)
tree42af1ab01493325e860e5cbf4245c6b39dd6e951 /fs/xfs/linux-2.6/xfs_iops.c
parentdbcdde3e76f45d56c4a30ca6c5d69b6d473d3fd1 (diff)
downloadlinux-fsl-qoriq-dec58f1dfd30a3c3e9dadc808692f4e5cd922745.tar.xz
xfs: work around bogus gcc warning in xfs_allocbt_init_cursor
GCC 4.6 complains about an array subscript is above array bounds when using the btree index to index into the agf_levels array. The only two indices passed in are 0 and 1, and we have an assert insuring that. Replace the trick of using the array index directly with using constants in the already existing branch for assigning the XFS_BTREE_LASTREC_UPDATE flag. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_iops.c')
0 files changed, 0 insertions, 0 deletions