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
@@ -342,13 +342,12 @@ int seq_printf(struct seq_file *m, const char *f, ...)
|
||||
}
|
||||
EXPORT_SYMBOL(seq_printf);
|
||||
|
||||
int seq_path(struct seq_file *m,
|
||||
struct vfsmount *mnt, struct dentry *dentry,
|
||||
char *esc)
|
||||
int seq_path(struct seq_file *m, struct path *path, char *esc)
|
||||
{
|
||||
if (m->count < m->size) {
|
||||
char *s = m->buf + m->count;
|
||||
char *p = d_path(dentry, mnt, s, m->size - m->count);
|
||||
char *p = d_path(path->dentry, path->mnt, s,
|
||||
m->size - m->count);
|
||||
if (!IS_ERR(p)) {
|
||||
while (s <= p) {
|
||||
char c = *p++;
|
||||
|
Reference in New Issue
Block a user