mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
d_path: Make seq_path() use a struct path argument
seq_path() is always called with a dentry and a vfsmount from a struct path. Make seq_path() take it directly as an argument. Signed-off-by: Jan Blunck <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Al Viro <[email protected]> Cc: "J. Bruce Fields" <[email protected]> Cc: Neil Brown <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e83aece3af
commit
c32c2f63a9
9 changed files with 16 additions and 17 deletions
|
|
@ -67,7 +67,7 @@ int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma)
|
|||
if (len < 1)
|
||||
len = 1;
|
||||
seq_printf(m, "%*c", len, ' ');
|
||||
seq_path(m, file->f_path.mnt, file->f_path.dentry, "");
|
||||
seq_path(m, &file->f_path, "");
|
||||
}
|
||||
|
||||
seq_putc(m, '\n');
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ static int show_map(struct seq_file *m, void *v)
|
|||
*/
|
||||
if (file) {
|
||||
pad_len_spaces(m, len);
|
||||
seq_path(m, file->f_path.mnt, file->f_path.dentry, "\n");
|
||||
seq_path(m, &file->f_path, "\n");
|
||||
} else {
|
||||
const char *name = arch_vma_name(vma);
|
||||
if (!name) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue