Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cgroups: tiny cleanups

- 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>

authored by

Li Zefan and committed by
Linus Torvalds
9b913735 51308ee5

-4
-4
include/linux/cgroup.h
··· 25 25 26 26 extern int cgroup_init_early(void); 27 27 extern int cgroup_init(void); 28 - extern void cgroup_init_smp(void); 29 28 extern void cgroup_lock(void); 30 29 extern bool cgroup_lock_live_group(struct cgroup *cgrp); 31 30 extern void cgroup_unlock(void); ··· 347 348 struct cgroupfs_root *root; 348 349 349 350 struct list_head sibling; 350 - 351 - void *private; 352 351 }; 353 352 354 353 #define SUBSYS(_x) extern struct cgroup_subsys _x ## _subsys; ··· 407 410 408 411 static inline int cgroup_init_early(void) { return 0; } 409 412 static inline int cgroup_init(void) { return 0; } 410 - static inline void cgroup_init_smp(void) {} 411 413 static inline void cgroup_fork(struct task_struct *p) {} 412 414 static inline void cgroup_fork_callbacks(struct task_struct *p) {} 413 415 static inline void cgroup_post_fork(struct task_struct *p) {}