summaryrefslogtreecommitdiffstats
path: root/mm/slab_common.c
diff options
context:
space:
mode:
authorOleg Nesterov2014-10-10 00:25:54 +0200
committerLinus Torvalds2014-10-10 04:25:50 +0200
commit58cb65487e92b47448d00a711c9f5922137d5678 (patch)
treeee260fe8859876f861b07d131eab07a35617b426 /mm/slab_common.c
parentproc/maps: replace proc_maps_private->pid with "struct inode *inode" (diff)
downloadkernel-qcow2-linux-58cb65487e92b47448d00a711c9f5922137d5678.tar.gz
kernel-qcow2-linux-58cb65487e92b47448d00a711c9f5922137d5678.tar.xz
kernel-qcow2-linux-58cb65487e92b47448d00a711c9f5922137d5678.zip
proc/maps: make vm_is_stack() logic namespace-friendly
- Rename vm_is_stack() to task_of_stack() and change it to return "struct task_struct *" rather than the global (and thus wrong in general) pid_t. - Add the new pid_of_stack() helper which calls task_of_stack() and uses the right namespace to report the correct pid_t. Unfortunately we need to define this helper twice, in task_mmu.c and in task_nommu.c. perhaps it makes sense to add fs/proc/util.c and move at least pid_of_stack/task_of_stack there to avoid the code duplication. - Change show_map_vma() and show_numa_map() to use the new helper. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Cyrill Gorcunov <gorcunov@openvz.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Greg Ungerer <gerg@uclinux.org> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab_common.c')
0 files changed, 0 insertions, 0 deletions