mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 20:24:12 +08: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