mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
vfs: add seq_file_path() helper
Turn seq_path(..., &file->f_path, ...); into seq_file_path(..., file, ...); Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -487,6 +487,20 @@ int seq_path(struct seq_file *m, const struct path *path, const char *esc)
|
||||
}
|
||||
EXPORT_SYMBOL(seq_path);
|
||||
|
||||
/**
|
||||
* seq_file_path - seq_file interface to print a pathname of a file
|
||||
* @m: the seq_file handle
|
||||
* @file: the struct file to print
|
||||
* @esc: set of characters to escape in the output
|
||||
*
|
||||
* return the absolute path to the file.
|
||||
*/
|
||||
int seq_file_path(struct seq_file *m, struct file *file, const char *esc)
|
||||
{
|
||||
return seq_path(m, &file->f_path, esc);
|
||||
}
|
||||
EXPORT_SYMBOL(seq_file_path);
|
||||
|
||||
/*
|
||||
* Same as seq_path, but relative to supplied root.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user