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/ext4/super.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/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index f06d0589ddba..0ae853d2e1f1 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -449,7 +449,7 @@ void __ext4_error_file(struct file *file, const char *function, | |||
449 | es = EXT4_SB(inode->i_sb)->s_es; | 449 | es = EXT4_SB(inode->i_sb)->s_es; |
450 | es->s_last_error_ino = cpu_to_le32(inode->i_ino); | 450 | es->s_last_error_ino = cpu_to_le32(inode->i_ino); |
451 | if (ext4_error_ratelimit(inode->i_sb)) { | 451 | if (ext4_error_ratelimit(inode->i_sb)) { |
452 | path = d_path(&(file->f_path), pathname, sizeof(pathname)); | 452 | path = file_path(file, pathname, sizeof(pathname)); |
453 | if (IS_ERR(path)) | 453 | if (IS_ERR(path)) |
454 | path = "(unknown)"; | 454 | path = "(unknown)"; |
455 | va_start(args, fmt); | 455 | va_start(args, fmt); |