projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1637023
)
cifsd: use file_inode() instead of d_inode()
author
Hyunchul Lee
<hyc.lee@gmail.com>
Thu, 1 Apr 2021 08:33:47 +0000
(17:33 +0900)
committer
Steve French
<stfrench@microsoft.com>
Tue, 11 May 2021 00:15:33 +0000
(19:15 -0500)
use file_inode() to get layerd filesystems right.
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/vfs.c
patch
|
blob
|
history
diff --git
a/fs/cifsd/vfs.c
b/fs/cifsd/vfs.c
index
bdc30a7
..
6313d5c
100644
(file)
--- 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;