fsck.f2fs: always fix seg entry type if it is not DATA
authorLiu Xue <liuxueliu.liu@huawei.com>
Tue, 24 Jan 2017 02:45:47 +0000 (10:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 24 Jan 2017 04:38:17 +0000 (13:38 +0900)
commit5d9032fd1b947da5f5f6b7e7731886c61d55dff3
treef320da331fdfccc329871b74aee0c370de862dbd
parentada65254f66e581e3f8d25a9552ca471dc40a33a
fsck.f2fs: always fix seg entry type if it is not DATA

If the segment type and sum footer type are node, but its
sit type is corrupted as cold data, this will always trigger
type error crash in do_garbage_collect but not get fixed by fsck,
so fix seg entry type when it is not DATA.

Reported-by: KARBOWSKI Piotr <piotr.karbowski@gmail.com>
Signed-off-by: Liu Xue <liuxueliu.liu@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c