Skip to content
Snippets Groups Projects
Commit d2f72ed8 authored by Hyunchul Lee's avatar Hyunchul Lee Committed by Steve French
Browse files

cifsd: use file_inode() instead of d_inode()


use file_inode() to get layerd filesystems right.

Signed-off-by: default avatarHyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: default avatarNamjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 16370235
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment