Skip to content

Commit d692d39

Browse files
author
Al Viro
committed
hostfs_open(): don't open-code file_dentry()
Signed-off-by: Al Viro <[email protected]>
1 parent a0d8d55 commit d692d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/hostfs/hostfs_kern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ static int hostfs_open(struct inode *ino, struct file *file)
317317
if (mode & FMODE_WRITE)
318318
r = w = 1;
319319

320-
name = dentry_name(d_real(file->f_path.dentry, file->f_inode));
320+
name = dentry_name(file_dentry(file));
321321
if (name == NULL)
322322
return -ENOMEM;
323323

0 commit comments

Comments
 (0)