diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-16 05:03:00 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-16 05:03:00 +0300 |
commit | d692d397e8a69f4ecdd7fb35ff0140d69bf17e18 (patch) | |
tree | 34668a2c2a108bb2d09f011bc0f94e183780c661 /fs/hostfs | |
parent | a0d8d552783b3fec78c775a57fa7e2b87e16e6ca (diff) | |
download | linux-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.c | 2 |
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; |