]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: use more free segments until SSR is activated
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 18 Sep 2014 00:52:58 +0000 (17:52 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Sep 2014 18:10:24 +0000 (11:10 -0700)
commit8308bc6447adc2f566d3b064ff9d96e117df2995
tree659e6547a14d2ab35db77e24564ccd6892398144
parent4252da20b90b134697b20569b1dba7afb41dc26b
f2fs: use more free segments until SSR is activated

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: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.h