Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1314435

[PATCH] net: sock: remove dead cgroup methods from struct proto

From Johannes Weiner <hannes@cmpxchg.org>
Newsgroups linux.kernel
Subject [PATCH] net: sock: remove dead cgroup methods from struct proto
Date 2016-01-21 20:10 +0100
Message-ID <qTsMj-19q-49@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The cgroup methods are no longer used after baac50b ("net:
tcp_memcontrol: simplify linkage between socket and page counter").
The hunk to delete them was included in the original patch but must
have gotten lost during conflict resolution on the way upstream.

Fixes: baac50b ("net: tcp_memcontrol: simplify linkage between socket and page counter")
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
---
 include/net/sock.h | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/include/net/sock.h b/include/net/sock.h
index b9e7b3d..f5ea148 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1036,18 +1036,6 @@ struct proto {
 #ifdef SOCK_REFCNT_DEBUG
 	atomic_t		socks;
 #endif
-#ifdef CONFIG_MEMCG_KMEM
-	/*
-	 * cgroup specific init/deinit functions. Called once for all
-	 * protocols that implement it, from cgroups populate function.
-	 * This function has to setup any files the protocol want to
-	 * appear in the kmem cgroup filesystem.
-	 */
-	int			(*init_cgroup)(struct mem_cgroup *memcg,
-					       struct cgroup_subsys *ss);
-	void			(*destroy_cgroup)(struct mem_cgroup *memcg);
-	struct cg_proto		*(*proto_cgroup)(struct mem_cgroup *memcg);
-#endif
 	int			(*diag_destroy)(struct sock *sk, int err);
 };
 
-- 
2.7.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] net: sock: remove dead cgroup methods from struct proto Johannes Weiner <hannes@cmpxchg.org> - 2016-01-21 20:10 +0100
  Re: [PATCH] net: sock: remove dead cgroup methods from struct proto Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-01-21 20:40 +0100
    Re: [PATCH] net: sock: remove dead cgroup methods from struct proto Johannes Weiner <hannes@cmpxchg.org> - 2016-01-21 22:00 +0100
      Re: [PATCH] net: sock: remove dead cgroup methods from struct proto David Miller <davem@davemloft.net> - 2016-01-21 23:40 +0100

csiph-web