• J
    f2fs: use more free segments until SSR is activated · 95dd8973
    Jaegeuk Kim 提交于
    Previously, f2fs activates SSR if the # of free segments reaches to the # of
    overprovisioned segments.
    In this case, SSR starts to use dirty segments only, so that the overprovisoned
    space cannot be selected for new data.
    This means that we have no chance to utilizae the overprovisioned space at all.
    
    This patch fixes that by allowing LFS allocations until the # of free segments
    reaches to the last threshold, reserved space.
    Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
    95dd8973
segment.h 22.4 KB