Commit 2880f47
f2fs: skip GC if possible when checkpoint disabling
If the number of unusable blocks is not larger than
unusable capacity, we can skip GC when checkpoint
disabling.
Signed-off-by: Weichao Guo <guoweichao@oppo.com>
Signed-off-by: Chao Yu <chao@kernel.org>
[Jaegeuk Kim: Fix missing gc_mode assignment]
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>1 parent 7141912 commit 2880f47
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2058 | 2058 | | |
2059 | 2059 | | |
2060 | 2060 | | |
2061 | | - | |
| 2061 | + | |
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
| |||
2069 | 2069 | | |
2070 | 2070 | | |
2071 | 2071 | | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
2072 | 2077 | | |
2073 | 2078 | | |
2074 | | - | |
2075 | 2079 | | |
2076 | 2080 | | |
2077 | 2081 | | |
| |||
2097 | 2101 | | |
2098 | 2102 | | |
2099 | 2103 | | |
| 2104 | + | |
2100 | 2105 | | |
2101 | 2106 | | |
2102 | 2107 | | |
| |||
0 commit comments