From: Glauber Costa Date: Sun, 15 Jan 2012 22:04:39 +0000 (+0000) Subject: net: move sock_update_memcg outside of CONFIG_INET X-Git-Tag: v3.3-rc1~17^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=319d3b9c97b5e3191e419bb95496bf08ec50f096;p=pandora-kernel.git net: move sock_update_memcg outside of CONFIG_INET Although only used currently for tcp sockets, this function is now used in common sock code (for sock_clone()) Commit 475f1b52645a29936b9df1d8fcd45f7e56bd4a9f moved the declaration of sock_update_clone() to inside sock.c, but this only fixes the problem when CONFIG_CGROUP_MEM_RES_CTLR_KMEM is also not defined. This patch here is verified to fix both problems, although reverting the previous one is not necessary. Signed-off-by: Glauber Costa CC: David S. Miller CC: Stephen Rothwell Reported-by: Randy Dunlap Acked-by: Randy Dunlap Signed-off-by: David S. Miller --- Reading git-diff-tree failed