mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 04:06:26 +00:00
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>
This commit is contained in:
parent
652cfeb43d
commit
d68968440b
@ -1054,6 +1054,8 @@ static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from)
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user