aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunchul Lee <[email protected]>2021-04-01 17:33:47 +0900
committerSteve French <[email protected]>2021-05-10 19:15:33 -0500
commitd2f72ed8fa0c0e6c90af8ee0bbb39d41ab2d5465 (patch)
tree6acb5939cdfa8cd37129f96f38b89ac87736f374
parent1637023594c1fd11fa4d77dd0c9493a864aa0d17 (diff)
cifsd: use file_inode() instead of d_inode()
use file_inode() to get layerd filesystems right. Signed-off-by: Hyunchul Lee <[email protected]> Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
-rw-r--r--fs/cifsd/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifsd/vfs.c b/fs/cifsd/vfs.c
index bdc30a7b6d52..6313d5ca4b46 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;