|
@@ -2862,7 +2862,7 @@ void __init tcp_init(void)
|
|
|
alloc_large_system_hash("TCP established",
|
|
|
sizeof(struct inet_ehash_bucket),
|
|
|
thash_entries,
|
|
|
- (num_physpages >= 128 * 1024) ?
|
|
|
+ (totalram_pages >= 128 * 1024) ?
|
|
|
13 : 15,
|
|
|
0,
|
|
|
&tcp_hashinfo.ehash_size,
|
|
@@ -2879,7 +2879,7 @@ void __init tcp_init(void)
|
|
|
alloc_large_system_hash("TCP bind",
|
|
|
sizeof(struct inet_bind_hashbucket),
|
|
|
tcp_hashinfo.ehash_size,
|
|
|
- (num_physpages >= 128 * 1024) ?
|
|
|
+ (totalram_pages >= 128 * 1024) ?
|
|
|
13 : 15,
|
|
|
0,
|
|
|
&tcp_hashinfo.bhash_size,
|