Skip to content

Commit

Permalink
cgroups: tiny cleanups
Browse files Browse the repository at this point in the history
- remove 'private' field from struct subsys
- remove cgroup_init_smp()

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Oct 30, 2008
1 parent 51308ee commit 9b91373
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/linux/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ struct cgroup;

extern int cgroup_init_early(void);
extern int cgroup_init(void);
extern void cgroup_init_smp(void);
extern void cgroup_lock(void);
extern bool cgroup_lock_live_group(struct cgroup *cgrp);
extern void cgroup_unlock(void);
Expand Down Expand Up @@ -348,8 +347,6 @@ struct cgroup_subsys {
struct cgroupfs_root *root;

struct list_head sibling;

void *private;
};

#define SUBSYS(_x) extern struct cgroup_subsys _x ## _subsys;
Expand Down Expand Up @@ -410,7 +407,6 @@ void cgroup_mm_owner_callbacks(struct task_struct *old,

static inline int cgroup_init_early(void) { return 0; }
static inline int cgroup_init(void) { return 0; }
static inline void cgroup_init_smp(void) {}
static inline void cgroup_fork(struct task_struct *p) {}
static inline void cgroup_fork_callbacks(struct task_struct *p) {}
static inline void cgroup_post_fork(struct task_struct *p) {}
Expand Down

0 comments on commit 9b91373

Please sign in to comment.