Re: [patch] arca-vm-2.2.5

David Miller (davem@twiddle.net)
Tue, 6 Apr 1999 15:53:32 -0700


Date: Wed, 7 Apr 1999 00:49:18 +0200 (CEST)
From: Ingo Molnar <mingo@chiara.csoma.elte.hu>

It should be 'inode >> 8' (which is done by the log2
solution). Unless i'm misunderstanding something.

Consider that:

(((unsigned long) inode) >> (sizeof(struct inode) & ~ (sizeof(struct inode) - 1)))

sort of approximates this and avoids the funny looking log2 macro. :-)

Later,
David S. Miller
davem@redhat.com

-
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/