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/