You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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:
@@ -823,6 +823,12 @@ int finish_no_open(struct file *file, struct dentry *dentry)
|
||||
}
|
||||
EXPORT_SYMBOL(finish_no_open);
|
||||
|
||||
char *file_path(struct file *filp, char *buf, int buflen)
|
||||
{
|
||||
return d_path(&filp->f_path, buf, buflen);
|
||||
}
|
||||
EXPORT_SYMBOL(file_path);
|
||||
|
||||
/**
|
||||
* vfs_open - open the file at the given path
|
||||
* @path: path to open
|
||||
|
||||
Reference in New Issue
Block a user