Re: [patch] page cache in per-inode RB-trees

Andrea Arcangeli (andrea@e-mind.com)
Thu, 15 Apr 1999 19:11:49 +0200 (CEST)


On Wed, 14 Apr 1999, Andrea Arcangeli wrote:

>Right now the rb_entry() call is:
>
>#define rb_entry(ptr, type, member) \
> ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
>
>If somebody has hints about this or about every other thing let me know as
>usual ;).

Just for the record I had an idea on how to avoid the branch. Simply
multiplying `0->memeber' with `!!ptr'. Maybe I'll do that...

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/