f2fs: node segment is prior to data segment selected victim
authorHou Pengyang <houpengyang@huawei.com>
Wed, 22 Feb 2017 10:28:59 +0000 (10:28 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 24 Feb 2017 17:39:40 +0000 (09:39 -0800)
commitb9cd20619e359d199b755543474c3d853c8e3415
tree1a7b541e013fce974a0bf83179d3869621a9b0df
parent3436c4bdb30de421d46f58c9174669fbcfd40ce0
f2fs: node segment is prior to data segment selected victim

As data segment gc may lead dnode dirty, so the greedy cost for data segment
should be valid blocks * 2, that is data segment is prior to node segment.

Signed-off-by: Hou Pengyang <houpengyang@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c