f2fs: introduce scan_curseg_cache for cleanup
authorChao Yu <yuchao0@huawei.com>
Wed, 8 Nov 2017 09:47:36 +0000 (17:47 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 03:38:33 +0000 (19:38 -0800)
commit75a69567eefcfb551569edfb5d02b0c2562ed317
tree050031ba90156950194f615bea70d3a77790250a
parent6180b68c28c0fba5f844f56f2a463827e96f1ca9
f2fs: introduce scan_curseg_cache for cleanup

Commit 4ac912427c42 ("f2fs: introduce free nid bitmap") copied codes
from __build_free_nids() into scan_free_nid_bits(), they are redundant,
introduce one common function scan_curseg_cache for cleanup.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c