Message ID | 1330674998-16704-1-git-send-email-slyich@gmail.com |
---|---|
State | Superseded, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 22ef5f9..b11667b 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -3299,7 +3299,7 @@ void __init tcp_init(void) tcp_init_mem(&init_net); /* Set per-socket limits to no more than 1/128 the pressure threshold */ - limit = nr_free_buffer_pages() << (PAGE_SHIFT - 10); + limit = nr_free_buffer_pages() >> (PAGE_SHIFT - 10); limit = max(limit, 128UL); max_share = min(4UL*1024*1024, limit);