mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-20 23:55:42 -04:00
hostfs_open(): don't open-code file_dentry()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -317,7 +317,7 @@ static int hostfs_open(struct inode *ino, struct file *file)
|
||||
if (mode & FMODE_WRITE)
|
||||
r = w = 1;
|
||||
|
||||
name = dentry_name(d_real(file->f_path.dentry, file->f_inode));
|
||||
name = dentry_name(file_dentry(file));
|
||||
if (name == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user