VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Al Viro <viro@zeniv.linux.org.uk> 2021-04-15 22:03:00 -0400 committer: Al Viro <viro@zeniv.linux.org.uk> 2021-04-15 22:03:00 -0400 commit: d692d397e8a69f4ecdd7fb35ff0140d69bf17e18 parent: a0d8d552783b3fec78c775a57fa7e2b87e16e6ca
Commit Summary:
hostfs_open(): don't open-code file_dentry()
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index 29e407762626..fd04e023d91d 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -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;