mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
hostfs_open(): don't open-code file_dentry()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a0d8d55278
commit
d692d397e8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user