[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <E23E222F-25F8-4C2A-8E16-D4B30C01AFDB@mac.com>
Date: Sun, 27 Aug 2006 14:02:51 -0400
From: Kyle Moffett <mrmacman_g4@....com>
To: Jörn Engel <joern@...nheim.fh-wedel.de>
Cc: Ian Lindsay <iml@...micary.org>, fsdevel@...nheim.fh-wedel.de,
linux-kernel@...r.kernel.org, linux-mtd@...ts.infradead.org
Subject: Re: LogFS
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists