summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3/file.c
diff options
context:
space:
mode:
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2024-01-29 08:30:09 +0100
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2024-01-29 08:48:35 +0100
commitd68968440b1a75dee05cfac7f368f1aa139e1911 (patch)
tree7bdfd9bb5659ff5af63ee167c98612c8376e4fa3 /fs/ntfs3/file.c
parentfs/ntfs3: Fixed overflow check in mi_enum_attr() (diff)
downloadlinux-d68968440b1a75dee05cfac7f368f1aa139e1911.tar.xz
linux-d68968440b1a75dee05cfac7f368f1aa139e1911.zip
fs/ntfs3: Update inode->i_size after success write into compressed file
Reported-by: Giovanni Santini <giovannisantini93@yahoo.it> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/file.c')
-rw-r--r--fs/ntfs3/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ntfs3/file.c b/fs/ntfs3/file.c
index b702543a8795..691b0c9b95ae 100644
--- a/fs/ntfs3/file.c
+++ b/fs/ntfs3/file.c
@@ -1054,6 +1054,8 @@ out:
iocb->ki_pos += written;
if (iocb->ki_pos > ni->i_valid)
ni->i_valid = iocb->ki_pos;
+ if (iocb->ki_pos > i_size)
+ i_size_write(inode, iocb->ki_pos);
return written;
}