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)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:04:16 +0000 (18:04 +0800)
commit3a5095b834b7ffd6f30edd62ec8fb5ba1abad5e4
treeb4c89b90323ad69966d4c9cac116d88d690ee165
parentc7c9e196c884d6131b278b8bbffa6f48c058ab1d
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