diff options
author | Chao Yu <yuchao0@huawei.com> | 2021-05-12 17:52:58 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-06-23 01:09:33 -0700 |
commit | 8f1d49832636d514e949b29ce64370ebebf6d6d2 (patch) | |
tree | 90a5b62a1c6cf0fa7b55df2f93defa84bb6fce50 /fs/f2fs/gc.c | |
parent | 8939a8489ca64b56f49428b0d882709080a928d4 (diff) |
f2fs: compress: remove unneeded preallocation
We will reserve iblocks for compression saved, so during compressed
cluster overwrite, we don't need to preallocate blocks for later
write.
In addition, it adds a bug_on to detect wrong reserved iblock number
in __f2fs_cluster_blocks().
Bug fix in the original patch by Jaegeuk:
If we released compressed blocks having an immutable bit, we can see less
number of compressed block addresses. Let's fix wrong BUG_ON.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.c')
0 files changed, 0 insertions, 0 deletions