diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2015-06-19 04:29:13 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-06-23 18:00:05 -0400 |
commit | 9bf39ab2adafd7cf8740859cb49e7b7952813a5d (patch) | |
tree | 2dc4ff57033635f0900328c99020af7bf71a31d2 /include/linux/fs.h | |
parent | 4bacc9c9234c7c8eec44f5ed4e960d9f96fa0f01 (diff) |
vfs: add file_path() helper
Turn
d_path(&file->f_path, ...);
into
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/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 2bd77e10e8e5..2c135ad741a9 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2500,6 +2500,8 @@ extern struct file * open_exec(const char *); | |||
2500 | extern int is_subdir(struct dentry *, struct dentry *); | 2500 | extern int is_subdir(struct dentry *, struct dentry *); |
2501 | extern int path_is_under(struct path *, struct path *); | 2501 | extern int path_is_under(struct path *, struct path *); |
2502 | 2502 | ||
2503 | extern char *file_path(struct file *, char *, int); | ||
2504 | |||
2503 | #include <linux/err.h> | 2505 | #include <linux/err.h> |
2504 | 2506 | ||
2505 | /* needed for stackable file system support */ | 2507 | /* needed for stackable file system support */ |