diff options
Diffstat (limited to 'fs/seq_file.c')
-rw-r--r-- | fs/seq_file.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/seq_file.c b/fs/seq_file.c index 1d9c1cbd4d0b..ce9e39fd5daf 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c | |||
@@ -490,6 +490,20 @@ int seq_path(struct seq_file *m, const struct path *path, const char *esc) | |||
490 | } | 490 | } |
491 | EXPORT_SYMBOL(seq_path); | 491 | EXPORT_SYMBOL(seq_path); |
492 | 492 | ||
493 | /** | ||
494 | * seq_file_path - seq_file interface to print a pathname of a file | ||
495 | * @m: the seq_file handle | ||
496 | * @file: the struct file to print | ||
497 | * @esc: set of characters to escape in the output | ||
498 | * | ||
499 | * return the absolute path to the file. | ||
500 | */ | ||
501 | int seq_file_path(struct seq_file *m, struct file *file, const char *esc) | ||
502 | { | ||
503 | return seq_path(m, &file->f_path, esc); | ||
504 | } | ||
505 | EXPORT_SYMBOL(seq_file_path); | ||
506 | |||
493 | /* | 507 | /* |
494 | * Same as seq_path, but relative to supplied root. | 508 | * Same as seq_path, but relative to supplied root. |
495 | */ | 509 | */ |