From: John Hawkes Date: Sat, 25 Mar 2006 11:08:02 +0000 (-0800) Subject: [PATCH] fix alloc_large_system_hash() roundup X-Git-Tag: v2.6.17-rc1~772 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e692ed37a507e18d8afe8e5faebd8c4722c5f12;p=pandora-kernel.git [PATCH] fix alloc_large_system_hash() roundup The "rounded up to nearest power of 2 in size" algorithm in alloc_large_system_hash is not correct. As coded, it takes an otherwise acceptable power-of-2 value and doubles it. For example, we see the error if we boot with thash_entries=2097152 which produces a hash table with 4194304 entries. Signed-off-by: John Hawkes Cc: Roland Dreier Cc: "Chen, Kenneth W" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed