Skip to content

Commit

Permalink
hostfs_open(): don't open-code file_dentry()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Apr 16, 2021
1 parent a0d8d55 commit d692d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/hostfs/hostfs_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d692d39

Please sign in to comment.