fs/ntfs3: Update inode->i_size after success write into compressed file
[ Upstream commit d68968440b1a75dee05cfac7f368f1aa139e1911 ] Reported-by: Giovanni Santini <giovannisantini93@yahoo.it> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
32a3974b26
commit
5d67a4ff3d
|
@ -1110,6 +1110,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