Commit d692d397 authored by Al Viro's avatar Al Viro

hostfs_open(): don't open-code file_dentry()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a0d8d552
...@@ -317,7 +317,7 @@ static int hostfs_open(struct inode *ino, struct file *file) ...@@ -317,7 +317,7 @@ static int hostfs_open(struct inode *ino, struct file *file)
if (mode & FMODE_WRITE) if (mode & FMODE_WRITE)
r = w = 1; r = w = 1;
name = dentry_name(d_real(file->f_path.dentry, file->f_inode)); name = dentry_name(file_dentry(file));
if (name == NULL) if (name == NULL)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment