Messages in this thread Patch in this message | | | From | Andy Lutomirski <> | Subject | [PATCH] proc: Expose /proc/<pid>/task/<tid>/children unconditionally | Date | Tue, 25 Jun 2013 12:51:45 -0700 |
| |
This is currently only available if CONFIG_CHECKPOINT_RESTORE, which is hidden under CONFIG_EXPERT. It's generally useful functionality, though, so expose it unconditionally.
Cc: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Andy Lutomirski <luto@amacapital.net> --- fs/proc/array.c | 2 -- fs/proc/base.c | 2 -- 2 files changed, 4 deletions(-)
diff --git a/fs/proc/array.c b/fs/proc/array.c index cbd0f1b..96d3e3e 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -598,7 +598,6 @@ int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, return 0; } -#ifdef CONFIG_CHECKPOINT_RESTORE static struct pid * get_children_pid(struct inode *inode, struct pid *pid_prev, loff_t pos) { @@ -719,4 +718,3 @@ const struct file_operations proc_tid_children_operations = { .llseek = seq_lseek, .release = children_seq_release, }; -#endif /* CONFIG_CHECKPOINT_RESTORE */ diff --git a/fs/proc/base.c b/fs/proc/base.c index 69078c7..34396a9 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -2866,9 +2866,7 @@ static const struct pid_entry tid_base_stuff[] = { ONE("stat", S_IRUGO, proc_tid_stat), ONE("statm", S_IRUGO, proc_pid_statm), REG("maps", S_IRUGO, proc_tid_maps_operations), -#ifdef CONFIG_CHECKPOINT_RESTORE REG("children", S_IRUGO, proc_tid_children_operations), -#endif #ifdef CONFIG_NUMA REG("numa_maps", S_IRUGO, proc_tid_numa_maps_operations), #endif -- 1.8.1.4
| |