mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +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 @@ 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user