[PATCH 5.17 0877/1126] f2fs: fix to do sanity check on curseg->alloc_type