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

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2021-04-15 22:03:00 -04:00
parent a0d8d55278
commit d692d397e8

View File

@ -317,7 +317,7 @@ retry:
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;