[PATCH 5.10 474/599] f2fs: fix to do sanity check on curseg->alloc_type