LogFS
Kyle Moffett
mrmacman_g4 at mac.com
Sun Aug 27 14:02:51 EDT 2006
On Aug 27, 2006, at 13:17:28, Jörn Engel wrote:
> On Sun, 27 August 2006 01:32:45 -0400, Ian Lindsay wrote:
>> +/* FIXME: This should really be somewhere in the 64bit area. */
>> +#define LOGFS_LINK_MAX (2^30)
>>
>> Interesting choice of constant.
>
> Yes. I didn't spend a long time thinking about whether it should
> be 2^31 or 2^31-1 or 2^31-2. It will be a while before it becomes
> an issue in real life anyway. :)
Uhm, I think his point is that "^" is the xor operation:
2^30 == 28
2^31 == 29
2^21-1 == 28
2^21-2 == 31
Probably what you wanted was something more like this:
# define LOGFS_LINK_MAX (1<<30)
Cheers,
Kyle Moffett
More information about the linux-mtd
mailing list