]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vfs: fix panic in __d_lookup() with high dentry hashtable counts
authorDimitri Sivanich <sivanich@sgi.com>
Fri, 10 Aug 2012 11:46:56 +0000 (04:46 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 10 Aug 2012 13:54:24 +0000 (06:54 -0700)
commit4def6f6bec699437a7d7d8532f46e23a9e70dbea
tree7b381f773727700391b819a639d78ee90c48f3d9
parentf0429fdbff77e28a09e9b608c64954e51e58a7db
vfs: fix panic in __d_lookup() with high dentry hashtable counts

When the number of dentry cache hash table entries gets too high
(2147483648 entries), as happens by default on a 16TB system, use of a
signed integer in the dcache_init() initialization loop prevents the
dentry_hashtable from getting initialized, causing a panic in
__d_lookup().  Fix this in dcache_init() and similar areas.

Signed-off-by: Dimitri Sivanich <sivanich@sgi.com>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Conflicts:

net/ipv4/tcp.c
fs/dcache.c
fs/inode.c
kernel/pid.c
mm/page_alloc.c
net/ipv4/tcp.c