f2fs: cleanup the code in build_sit_entries.
authorLihong Kou <koulihong@huawei.com>
Mon, 5 Aug 2019 11:13:52 +0000 (19:13 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 23 Aug 2019 14:57:14 +0000 (07:57 -0700)
commit290c30d4454ccf85de372af499e32e86f5d94188
tree7f912143e9d56302a69bb4aede1f263d9cb97070
parent27cae0bcc0510ba009f01806b4af13940ad96f7d
f2fs: cleanup the code in build_sit_entries.

We do not need to set the SBI_NEED_FSCK flag in the error paths, if we
return error here, we will not update the checkpoint flag, so the code
is useless, just remove it.

Signed-off-by: Lihong Kou <koulihong@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c