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>
This commit is contained in:
@@ -334,7 +334,7 @@ static void describe_addr(struct KBacktraceIterator *kbt,
|
||||
}
|
||||
|
||||
if (vma->vm_file) {
|
||||
p = d_path(&vma->vm_file->f_path, buf, bufsize);
|
||||
p = file_path(vma->vm_file, buf, bufsize);
|
||||
if (IS_ERR(p))
|
||||
p = "?";
|
||||
name = kbasename(p);
|
||||
|
Reference in New Issue
Block a user