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 /fs/coredump.c | |
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 'fs/coredump.c')
-rw-r--r-- | fs/coredump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coredump.c b/fs/coredump.c index bbbe139ab280..5b771b36cc6e 100644 --- a/fs/coredump.c +++ b/fs/coredump.c | |||
@@ -138,7 +138,7 @@ static int cn_print_exe_file(struct core_name *cn) | |||
138 | goto put_exe_file; | 138 | goto put_exe_file; |
139 | } | 139 | } |
140 | 140 | ||
141 | path = d_path(&exe_file->f_path, pathbuf, PATH_MAX); | 141 | path = file_path(exe_file, pathbuf, PATH_MAX); |
142 | if (IS_ERR(path)) { | 142 | if (IS_ERR(path)) { |
143 | ret = PTR_ERR(path); | 143 | ret = PTR_ERR(path); |
144 | goto free_buf; | 144 | goto free_buf; |