f2fs-tools: do not count free_segs in flush_sit_entries
authorSheng Yong <shengyong1@huawei.com>
Wed, 13 Jun 2018 10:13:59 +0000 (18:13 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 28 Aug 2018 06:49:26 +0000 (23:49 -0700)
commite2819f24bdaa3e2c0f5f6ef348a1425b3c41a531
tree7a569d085cd869eeb02018a43d474bbaacd26ebc
parentdf8065e52928bef49f9dd3795aaa090fe79c9f78
f2fs-tools: do not count free_segs in flush_sit_entries

flush_sit_entries() is always called before write_checkpoint(). Since
free_segs is counted in write_checkpoint, there is no need to do that
in flush_sit_entries. Besides, the value of free_segs may be not
correct if we skip uptodate seg_entries.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/mount.c