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:
Konstantin Komarov 2024-01-29 10:30:09 +03:00
parent 652cfeb43d
commit d68968440b
No known key found for this signature in database
GPG Key ID: A9B0331F832407B6

View File

@ -1054,6 +1054,8 @@ out:
iocb->ki_pos += written; iocb->ki_pos += written;
if (iocb->ki_pos > ni->i_valid) if (iocb->ki_pos > ni->i_valid)
ni->i_valid = iocb->ki_pos; ni->i_valid = iocb->ki_pos;
if (iocb->ki_pos > i_size)
i_size_write(inode, iocb->ki_pos);
return written; return written;
} }