mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
Merge branch 'for-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
Pull cgroup updates from Tejun Heo: "Nothing too interesting. Just a handful of cleanup patches" * 'for-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup: Revert "cgroup: remove redundant variable in cgroup_mount()" cgroup: remove redundant variable in cgroup_mount() cgroup: fix missing unlock in cgroup_release_agent() cgroup: remove CGRP_RELEASABLE flag perf/cgroup: Remove perf_put_cgroup() cgroup: remove redundant check in cgroup_ino() cpuset: simplify proc_cpuset_show() cgroup: simplify proc_cgroup_show() cgroup: use a per-cgroup work for release agent cgroup: remove bogus comments cgroup: remove redundant code in cgroup_rmdir() cgroup: remove some useless forward declarations cgroup: fix a typo in comment.
This commit is contained in:
commit
b211e9d7c8
7 changed files with 68 additions and 202 deletions
|
@ -376,37 +376,6 @@ static const struct file_operations proc_lstats_operations = {
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CGROUPS
|
||||
static int cgroup_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
struct pid *pid = PROC_I(inode)->pid;
|
||||
return single_open(file, proc_cgroup_show, pid);
|
||||
}
|
||||
|
||||
static const struct file_operations proc_cgroup_operations = {
|
||||
.open = cgroup_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
.release = single_release,
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PROC_PID_CPUSET
|
||||
|
||||
static int cpuset_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
struct pid *pid = PROC_I(inode)->pid;
|
||||
return single_open(file, proc_cpuset_show, pid);
|
||||
}
|
||||
|
||||
static const struct file_operations proc_cpuset_operations = {
|
||||
.open = cpuset_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
.release = single_release,
|
||||
};
|
||||
#endif
|
||||
|
||||
static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns,
|
||||
struct pid *pid, struct task_struct *task)
|
||||
{
|
||||
|
@ -2579,10 +2548,10 @@ static const struct pid_entry tgid_base_stuff[] = {
|
|||
REG("latency", S_IRUGO, proc_lstats_operations),
|
||||
#endif
|
||||
#ifdef CONFIG_PROC_PID_CPUSET
|
||||
REG("cpuset", S_IRUGO, proc_cpuset_operations),
|
||||
ONE("cpuset", S_IRUGO, proc_cpuset_show),
|
||||
#endif
|
||||
#ifdef CONFIG_CGROUPS
|
||||
REG("cgroup", S_IRUGO, proc_cgroup_operations),
|
||||
ONE("cgroup", S_IRUGO, proc_cgroup_show),
|
||||
#endif
|
||||
ONE("oom_score", S_IRUGO, proc_oom_score),
|
||||
REG("oom_adj", S_IRUGO|S_IWUSR, proc_oom_adj_operations),
|
||||
|
@ -2925,10 +2894,10 @@ static const struct pid_entry tid_base_stuff[] = {
|
|||
REG("latency", S_IRUGO, proc_lstats_operations),
|
||||
#endif
|
||||
#ifdef CONFIG_PROC_PID_CPUSET
|
||||
REG("cpuset", S_IRUGO, proc_cpuset_operations),
|
||||
ONE("cpuset", S_IRUGO, proc_cpuset_show),
|
||||
#endif
|
||||
#ifdef CONFIG_CGROUPS
|
||||
REG("cgroup", S_IRUGO, proc_cgroup_operations),
|
||||
ONE("cgroup", S_IRUGO, proc_cgroup_show),
|
||||
#endif
|
||||
ONE("oom_score", S_IRUGO, proc_oom_score),
|
||||
REG("oom_adj", S_IRUGO|S_IWUSR, proc_oom_adj_operations),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue