[PATCH openEuler-5.10 450/557] f2fs: fix to do sanity check on curseg->alloc_type