]> git.ipfire.org Git - people/ms/linux.git/commit - fs/f2fs/data.c
f2fs: compress: fix to update isize when overwriting compressed file
authorChao Yu <yuchao0@huawei.com>
Fri, 24 Jul 2020 10:21:36 +0000 (18:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 26 Jul 2020 15:19:06 +0000 (08:19 -0700)
commit944dd22ea4475bd11180fd2f431a4a547ca4d8f5
tree4ddd109ccc26d7a02dc47fb1f1f3af8a25b10608
parenta87aff1d491f6d824d9cc53303544361d7eaae75
f2fs: compress: fix to update isize when overwriting compressed file

We missed to update isize of compressed file in write_end() with
below case:

cluster size is 16KB

- write 14KB data from offset 0
- overwrite 16KB data from offset 0

Fixes: 4c8ff7095bef ("f2fs: support data compression")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c