Re: [patch] arca-vm-2.2.5

Andrea Arcangeli (andrea@e-mind.com)
Wed, 7 Apr 1999 00:31:55 +0200 (CEST)


On Tue, 6 Apr 1999, Stephen C. Tweedie wrote:

>> -#define i (((unsigned long) inode)/(sizeof(struct inode) & ~ (sizeof(struct inode) - 1)))
>> +#define i (((unsigned long) inode-PAGE_OFFSET)/(sizeof(struct inode) & ~ (sizeof(struct inode) - 1)))
>
>This just ends up adding or subtracting a constant to the hash function,
>so won't have any effect at all on the occupancy distribution of the
>hash buckets.

My point is that PAGE_HASH_BITS is < of 32/2.

Andrea Arcangeli

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/