Re: [PATCH 05/14] net: tcp_memcontrol: protect all tcp_memcontrol calls by jump-label

From
David Miller <hidden>
Date
2015-11-13 16:01:26
Also in
linux-mm, lkml, netdev
Reply to
Johannes Weiner, 2015-11-12
From: Johannes Weiner <redacted>
Date: Thu, 12 Nov 2015 18:41:24 -0500
Move the jump-label from sock_update_memcg() and sock_release_memcg()
to the callsite, and so eliminate those function calls when socket
accounting is not enabled.

This also eliminates the need for dummy functions because the calls
will be optimized away if the Kconfig options are not enabled.

Signed-off-by: Johannes Weiner <redacted>
Acked-by: David S. Miller <redacted>
Thread (61 messages) 61 messages, 5 authors, last reply 2015-11-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help