提交 41e3928f 编写于 作者: H Hyeongseok Kim 提交者: Namjae Jeon

exfat: fix wrong size update of stream entry by typo

The stream.size field is updated to the value of create timestamp
of the file entry. Fix this to use correct stream entry pointer.

Fixes: 29bbb14b ("exfat: fix incorrect update of stream entry in __exfat_truncate()")
Signed-off-by: NHyeongseok Kim <hyeongseok@gmail.com>
Signed-off-by: NNamjae Jeon <namjae.jeon@samsung.com>
上级 d2fa0c33
......@@ -176,7 +176,7 @@ int __exfat_truncate(struct inode *inode, loff_t new_size)
ep2->dentry.stream.size = 0;
} else {
ep2->dentry.stream.valid_size = cpu_to_le64(new_size);
ep2->dentry.stream.size = ep->dentry.stream.valid_size;
ep2->dentry.stream.size = ep2->dentry.stream.valid_size;
}
if (new_size == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册