Christoph Hellwig dec58f1dfd 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>
2011-07-08 14:34:18 +02:00
..
2011-03-07 10:09:35 +11:00
2009-06-10 17:07:47 +02:00
2009-12-14 23:08:16 -06:00
2011-03-31 11:26:23 -03:00
2009-03-29 09:55:42 +02:00
2010-10-18 15:08:07 -05:00
2008-12-01 11:37:35 +11:00
2011-03-07 10:09:35 +11:00
2009-08-31 14:46:22 -05:00
2010-12-16 16:05:51 -06:00
2011-05-24 11:17:13 -05:00
2011-04-28 13:18:04 -05:00
2011-04-28 13:18:04 -05:00
2011-05-24 11:17:13 -05:00
2011-03-31 11:26:23 -03:00
2011-04-28 13:18:04 -05:00
2010-10-18 15:08:06 -05:00
2010-10-18 15:08:06 -05:00
2009-12-14 23:08:16 -06:00