]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit034da4cd98639c089b4a268180cde7faf06050aa
tree5f1a9f1c6cafb44fcca156d74f74af238ffd3ac5
parent0377e441a19a9e91a4b2c0a9b870123f36015a43
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