summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2018-04-26 11:05:51 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2018-05-31 20:31:50 +0200
commit299254d85dec4ac0515a14e6d96ff70841302719 (patch)
tree4151ae868d885a7d2996bb7101a39710c57a02e5 /fs/f2fs/f2fs.h
parentf2fs: don't drop any page on f2fs_cp_error() case (diff)
downloadlinux-299254d85dec4ac0515a14e6d96ff70841302719.tar.xz
linux-299254d85dec4ac0515a14e6d96ff70841302719.zip
Revert "f2fs: add ovp valid_blocks check for bg gc victim to fg_gc"
For extreme case: 10 section, op = 10%, no_fggc_threshold = 90% All section usage: 85% 85% 85% 85% 90% 90% 95% 95% 95% 95% During foreground GC, if we skip select dirty section whose usage is larger than no_fggc_threshold, we can only recycle 80% invalid space from four 85% usage sections and two 90% usage sections, result in encountering out-of-space issue. This reverts commit e93b9865251a0503d83fd570e7d5a7c8bc351715 to fix this issue, besides, we keep the logic that we scan all dirty section when searching a victim, so that GC can select victim with least valid blocks. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 7d19fd092928..45dbeb5ebd15 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -1196,9 +1196,6 @@ struct f2fs_sb_info {
struct f2fs_gc_kthread *gc_thread; /* GC thread */
unsigned int cur_victim_sec; /* current victim section num */
- /* threshold for converting bg victims for fg */
- u64 fggc_threshold;
-
/* threshold for gc trials on pinned files */
u64 gc_pin_file_threshold;