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 <jblunck@suse.de> Cc: Christoph Hellwig <hch@lst.de> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: "J. Bruce Fields" <bfields@fieldses.org> Cc: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
e83aece3af
commit
c32c2f63a9
@@ -203,7 +203,7 @@ static int expkey_show(struct seq_file *m,
|
||||
if (test_bit(CACHE_VALID, &h->flags) &&
|
||||
!test_bit(CACHE_NEGATIVE, &h->flags)) {
|
||||
seq_printf(m, " ");
|
||||
seq_path(m, ek->ek_path.mnt, ek->ek_path.dentry, "\\ \t\n");
|
||||
seq_path(m, &ek->ek_path, "\\ \t\n");
|
||||
}
|
||||
seq_printf(m, "\n");
|
||||
return 0;
|
||||
@@ -649,7 +649,7 @@ static int svc_export_show(struct seq_file *m,
|
||||
return 0;
|
||||
}
|
||||
exp = container_of(h, struct svc_export, h);
|
||||
seq_path(m, exp->ex_path.mnt, exp->ex_path.dentry, " \t\n\\");
|
||||
seq_path(m, &exp->ex_path, " \t\n\\");
|
||||
seq_putc(m, '\t');
|
||||
seq_escape(m, exp->ex_client->name, " \t\n\\");
|
||||
seq_putc(m, '(');
|
||||
|
Reference in New Issue
Block a user