* [PATCH] exfat: fix wrong size update of stream entry by typo @ 2020-07-08 9:52 ` Hyeongseok Kim 2020-07-10 5:12 ` Namjae Jeon 0 siblings, 1 reply; 2+ messages in thread From: Hyeongseok Kim @ 2020-07-08 9:52 UTC (permalink / raw) To: namjae.jeon, sj1557.seo; +Cc: linux-fsdevel, linux-kernel, Hyeongseok Kim 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: 29bbb14bfc80 ("exfat: fix incorrect update of stream entry in __exfat_truncate()") Signed-off-by: Hyeongseok Kim <hyeongseok@gmail.com> --- fs/exfat/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/exfat/file.c b/fs/exfat/file.c index 6707f3eb09b5..6bdabfd4b134 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -177,7 +177,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) { -- 2.27.0.83.g0313f36 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] exfat: fix wrong size update of stream entry by typo 2020-07-08 9:52 ` [PATCH] exfat: fix wrong size update of stream entry by typo Hyeongseok Kim @ 2020-07-10 5:12 ` Namjae Jeon 0 siblings, 0 replies; 2+ messages in thread From: Namjae Jeon @ 2020-07-10 5:12 UTC (permalink / raw) To: 'Hyeongseok Kim', sj1557.seo; +Cc: linux-fsdevel, linux-kernel > 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: 29bbb14bfc80 ("exfat: fix incorrect update of stream entry in __exfat_truncate()") > Signed-off-by: Hyeongseok Kim <hyeongseok@gmail.com> My bad, Pushed it into exfat #dev. Thanks! ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-10 5:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20200708095242epcas1p2a106825fa23003abb184739703c594cc@epcas1p2.samsung.com>
2020-07-08 9:52 ` [PATCH] exfat: fix wrong size update of stream entry by typo Hyeongseok Kim
2020-07-10 5:12 ` Namjae Jeon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).