lkml.org 
[lkml]   [2014]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH mmotm/next] cgroup: remove stray references to css_id
Trivial: remove the few stray references to css_id, which itself
was removed in v3.13's 2ff2a7d03bbe "cgroup: kill css_id".

Signed-off-by: Hugh Dickins <hughd@google.com>
---
But I don't know your plans with respect to the XXX in
kernel/cgroup.c, so perhaps you'd prefer to amend this.

drivers/md/bcache/request.c | 1 -
include/linux/cgroup.h | 3 ---
mm/page_cgroup.c | 2 +-
3 files changed, 1 insertion(+), 5 deletions(-)

--- mmotm/drivers/md/bcache/request.c 2014-01-10 18:24:58.212448858 -0800
+++ linux/drivers/md/bcache/request.c 2014-01-12 20:00:07.641685957 -0800
@@ -163,7 +163,6 @@ static struct cgroup_subsys_state *bcach
static void bcachecg_destroy(struct cgroup *cgroup)
{
struct bch_cgroup *cg = cgroup_to_bcache(cgroup);
- free_css_id(&bcache_subsys, &cg->css);
kfree(cg);
}

--- mmotm/include/linux/cgroup.h 2014-01-10 18:25:01.820448944 -0800
+++ linux/include/linux/cgroup.h 2014-01-12 20:00:07.645685957 -0800
@@ -29,7 +29,6 @@ struct cgroupfs_root;
struct cgroup_subsys;
struct inode;
struct cgroup;
-struct css_id;

extern int cgroup_init_early(void);
extern int cgroup_init(void);
@@ -79,8 +78,6 @@ struct cgroup_subsys_state {
struct cgroup_subsys_state *parent;

unsigned long flags;
- /* ID for this css, if possible */
- struct css_id __rcu *id;

/* percpu_ref killing and RCU release */
struct rcu_head rcu_head;
--- mmotm/mm/page_cgroup.c 2014-01-10 18:25:02.256448954 -0800
+++ linux/mm/page_cgroup.c 2014-01-12 20:00:07.645685957 -0800
@@ -452,7 +452,7 @@ unsigned short swap_cgroup_record(swp_en
* lookup_swap_cgroup_id - lookup mem_cgroup id tied to swap entry
* @ent: swap entry to be looked up.
*
- * Returns CSS ID of mem_cgroup at success. 0 at failure. (0 is invalid ID)
+ * Returns ID of mem_cgroup at success. 0 at failure. (0 is invalid ID)
*/
unsigned short lookup_swap_cgroup_id(swp_entry_t ent)
{

\
 
 \ /
  Last update: 2014-01-13 06:01    [W:0.034 / U:20.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site