From: Pavel Emelyanov Date: Thu, 17 Jul 2008 03:28:10 +0000 (-0700) Subject: sock: add net to prot->enter_memory_pressure callback X-Git-Tag: v2.6.27-rc1~969^2~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c52ba170f8167511bdb65b981f4582100c40675;p=pandora-kernel.git sock: add net to prot->enter_memory_pressure callback The tcp_enter_memory_pressure calls NET_INC_STATS, but doesn't have where to get the net from. I decided to add a sk argument, not the net itself, only to factor all the required sock_net(sk) calls inside the enter_memory_pressure callback itself. Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed