From: Hyunchul Lee Date: Thu, 1 Apr 2021 08:33:47 +0000 (+0900) Subject: cifsd: use file_inode() instead of d_inode() X-Git-Tag: v5.15~454^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2f72ed8fa0c0e6c90af8ee0bbb39d41ab2d5465;p=platform%2Fkernel%2Flinux-starfive.git cifsd: use file_inode() instead of d_inode() use file_inode() to get layerd filesystems right. Signed-off-by: Hyunchul Lee Signed-off-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/cifsd/vfs.c b/fs/cifsd/vfs.c index bdc30a7..6313d5c 100644 --- a/fs/cifsd/vfs.c +++ b/fs/cifsd/vfs.c @@ -335,7 +335,7 @@ int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, rbuf = work->aux_payload_buf; filp = fp->filp; - inode = d_inode(filp->f_path.dentry); + inode = file_inode(filp); if (S_ISDIR(inode->i_mode)) return -EISDIR;