mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
vfs: add seq_file_path() helper
Turn seq_path(..., &file->f_path, ...); into seq_file_path(..., file, ...); Signed-off-by: Miklos Szeredi <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
9bf39ab2ad
commit
2726d56620
7 changed files with 21 additions and 6 deletions
|
|
@ -64,7 +64,7 @@ static int nommu_region_show(struct seq_file *m, struct vm_region *region)
|
|||
|
||||
if (file) {
|
||||
seq_pad(m, ' ');
|
||||
seq_path(m, &file->f_path, "");
|
||||
seq_file_path(m, file, "");
|
||||
}
|
||||
|
||||
seq_putc(m, '\n');
|
||||
|
|
|
|||
|
|
@ -310,7 +310,7 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
|
|||
*/
|
||||
if (file) {
|
||||
seq_pad(m, ' ');
|
||||
seq_path(m, &file->f_path, "\n");
|
||||
seq_file_path(m, file, "\n");
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
@ -1509,7 +1509,7 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
|
|||
|
||||
if (file) {
|
||||
seq_puts(m, " file=");
|
||||
seq_path(m, &file->f_path, "\n\t= ");
|
||||
seq_file_path(m, file, "\n\t= ");
|
||||
} else if (vma->vm_start <= mm->brk && vma->vm_end >= mm->start_brk) {
|
||||
seq_puts(m, " heap");
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma,
|
|||
|
||||
if (file) {
|
||||
seq_pad(m, ' ');
|
||||
seq_path(m, &file->f_path, "");
|
||||
seq_file_path(m, file, "");
|
||||
} else if (mm) {
|
||||
pid_t tid = pid_of_stack(priv, vma, is_pid);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue