Skip to content

Commit b3ff8a2

Browse files
Hugh Dickinshtejun
authored andcommitted
cgroup: remove stray references to css_id
Trivial: remove the few stray references to css_id, which itself was removed in v3.13's 2ff2a7d "cgroup: kill css_id". Signed-off-by: Hugh Dickins <hughd@google.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 8173d5a commit b3ff8a2

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎drivers/md/bcache/request.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ static struct cgroup_subsys_state *bcachecg_create(struct cgroup *cgroup)
163163
static void bcachecg_destroy(struct cgroup *cgroup)
164164
{
165165
struct bch_cgroup *cg = cgroup_to_bcache(cgroup);
166-
free_css_id(&bcache_subsys, &cg->css);
167166
kfree(cg);
168167
}
169168

‎include/linux/cgroup.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ struct cgroupfs_root;
2929
struct cgroup_subsys;
3030
struct inode;
3131
struct cgroup;
32-
struct css_id;
3332

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

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

8582
/* percpu_ref killing and RCU release */
8683
struct rcu_head rcu_head;

‎mm/page_cgroup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id)
451451
* lookup_swap_cgroup_id - lookup mem_cgroup id tied to swap entry
452452
* @ent: swap entry to be looked up.
453453
*
454-
* Returns CSS ID of mem_cgroup at success. 0 at failure. (0 is invalid ID)
454+
* Returns ID of mem_cgroup at success. 0 at failure. (0 is invalid ID)
455455
*/
456456
unsigned short lookup_swap_cgroup_id(swp_entry_t ent)
457457
{

0 commit comments

Comments
 (0)