aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorHou Pengyang <[email protected]>2017-02-16 12:34:31 +0000
committerJaegeuk Kim <[email protected]>2017-02-23 11:28:20 -0800
commite93b9865251a0503d83fd570e7d5a7c8bc351715 (patch)
tree40675944d4c7d3a68fd3568637597095a1a6c489 /net/lapb/lapb_iface.c
parent86d54795c94532075d862aa0a79f0c981dab4bdd (diff)
f2fs: add ovp valid_blocks check for bg gc victim to fg_gc
For foreground gc, greedy algorithm should be adapted, which makes this formula work well: (2 * (100 / config.overprovision + 1) + 6) But currently, we fg_gc have a prior to select bg_gc victim segments to gc first, these victims are selected by cost-benefit algorithm, we can't guarantee such segments have the small valid blocks, which may destroy the f2fs rule, on the worstest case, would consume all the free segments. This patch fix this by add a filter in check_bg_victims, if segment's has # of valid blocks over overprovision ratio, skip such segments. Cc: <[email protected]> Signed-off-by: Hou Pengyang <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions