diff options
author | John Hawkes <hawkes@sgi.com> | 2006-03-25 12:08:02 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 17:22:58 +0100 |
commit | 6e692ed37a507e18d8afe8e5faebd8c4722c5f12 (patch) | |
tree | 9178f07eb643123d20a95e4ec08477f2c85bd9ea /crypto | |
parent | [PATCH] roundup_pow_of_two() 64-bit fix (diff) | |
download | linux-6e692ed37a507e18d8afe8e5faebd8c4722c5f12.tar.xz linux-6e692ed37a507e18d8afe8e5faebd8c4722c5f12.zip |
[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 <hawkes@sgi.com>
Cc: Roland Dreier <rdreier@cisco.com>
Cc: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions