Re: [PATCH] quota: integer constant is too large for âlongâ type in

From: Jan Kara
Date: Tue Dec 15 2009 - 16:30:23 EST


On Tue 15-12-09 07:24:14, Joe Perches wrote:
> On Tue, 2009-12-15 at 21:27 +0800, Jerry Leo wrote:
> > - info->dqi_maxblimit = 0xffffffffffffffff; /* 2^64-1 */
> > - info->dqi_maxilimit = 0xffffffffffffffff;
> > + info->dqi_maxblimit = 0xFFFFFFFFFFFFFFFFLL; /* 2^64-1 */
> > + info->dqi_maxilimit = 0xFFFFFFFFFFFFFFFFLL;
>
> ULLONG_MAX?
Not quite - I want it to really be 2^64 - 1 (on disk type is u64)
so ULLONG_MAX would be confusing IMHO.

Honza
--
Jan Kara <jack@xxxxxxx>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/