Thread (12 messages) flat view 12 messages, 4 authors, 2012-01-18

Re: [PATCH] Fix panic in __d_lookup with high dentry hashtable counts

From: Eric Dumazet <hidden>
Date: 2012-01-13 16:15:46
Also in: linux-fsdevel, lkml

Le vendredi 13 janvier 2012 à 09:52 -0600, Dimitri Sivanich a écrit :
When the number of dentry cache hash table entries gets too high
(2147483648 entries), use of a signed integer in the initialization
loop prevents the dentry_hashtable from getting initialized, resulting
in a panic in __d_lookup.  Fixing this in dcache_init and a few other
spots for consistency.
Well...

nr_dentry being an int, I dont think having a so big hash table is
needed/possible. Its probably a waste of memory ?

Maybe we should limit alloc_large_system_hash() to at most 2^30 slots.

[ And later, convert it to unsigned long *_hash_shift and unsigned long
*_hash_mask ]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help