f2fs: select target segment with closer temperature in SSR mode
authorChao Yu <yuchao0@huawei.com>
Fri, 24 Feb 2017 10:46:00 +0000 (18:46 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 27 Feb 2017 17:59:56 +0000 (09:59 -0800)
commitd27c3d89db9986b6f48576169031247e4c893729
tree5f1a9f1c6cafb44fcca156d74f74af238ffd3ac5
parent55523519bc7227e651fd4febeb3aafdd22b8af1c
f2fs: select target segment with closer temperature in SSR mode

In SSR mode, we can allocate target segment which has different
temperature type from the type of current block, in order to avoid
mixing coldest and hottest data/node as much as possible, change
SSR allocation policy to select closer temperature for current
block prior.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c