summaryrefslogtreecommitdiff
path: root/fs/hostfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-04-16 05:03:00 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2021-04-16 05:03:00 +0300
commitd692d397e8a69f4ecdd7fb35ff0140d69bf17e18 (patch)
tree34668a2c2a108bb2d09f011bc0f94e183780c661 /fs/hostfs
parenta0d8d552783b3fec78c775a57fa7e2b87e16e6ca (diff)
downloadlinux-d692d397e8a69f4ecdd7fb35ff0140d69bf17e18.tar.xz
hostfs_open(): don't open-code file_dentry()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hostfs')
-rw-r--r--fs/hostfs/hostfs_kern.c2
1 files changed, 1 insertions, 1 deletions
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;