Robert, Im on it...I have submitted a few more patches in the past week or so and a few were accepted...will update on the wiki soon. Vignesh On 8/26/07, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote: > > is anyone still working on the power-of-2 stuff? surely, there's a > cleaner way to code this from fs/namespace.c: > > > /* > * Find the power-of-two list-heads that can fit into the allocation.. > * We don't guarantee that "sizeof(struct list_head)" is necessarily > * a power-of-two. > */ > nr_hash = PAGE_SIZE / sizeof(struct list_head); > hash_bits = 0; > do { > hash_bits++; > } while ((nr_hash >> hash_bits) != 0); > hash_bits--; > > /* > * Re-calculate the actual number of entries and the mask > * from the number of bits we can fit. > */ > nr_hash = 1UL << hash_bits; > hash_mask = nr_hash - 1; > > > rday > > -- > ======================================================================== > Robert P. J. Day > Linux Consulting, Training and Annoying Kernel Pedantry > Waterloo, Ontario, CANADA > > http://crashcourse.ca > ======================================================================== > - > To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- ---------------------------------------------- "Why is it that every time I'm with you, makes me believe in magic?" - To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html