Re: [PATCH] fix alloc_large_system_hash roundup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 >  	/* rounded up to nearest power of 2 in size */
 > -	numentries = 1UL << (long_log2(numentries) + 1);
 > +	numentries = 1UL << (long_log2(2*numentries - 1));

How about just using roundup_pow_of_two()?  You could kill the comment
too then.

 - R.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux