diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2015-06-19 10:30:28 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-06-24 00:01:07 +0200 |
commit | 2726d56620ce71f40dd583d51391b86e1ab8cc57 (patch) | |
tree | 5fad19a48f9eb60de9e407e0b0baa24bb72e7dbb /include | |
parent | vfs: add file_path() helper (diff) | |
download | linux-2726d56620ce71f40dd583d51391b86e1ab8cc57.tar.xz linux-2726d56620ce71f40dd583d51391b86e1ab8cc57.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/seq_file.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index afbb1fd77c77..912a7c482649 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h @@ -123,6 +123,7 @@ __printf(2, 3) int seq_printf(struct seq_file *, const char *, ...); __printf(2, 0) int seq_vprintf(struct seq_file *, const char *, va_list args); int seq_path(struct seq_file *, const struct path *, const char *); +int seq_file_path(struct seq_file *, struct file *, const char *); int seq_dentry(struct seq_file *, struct dentry *, const char *); int seq_path_root(struct seq_file *m, const struct path *path, const struct path *root, const char *esc); |