[PATCH 5.15 716/913] f2fs: fix to do sanity check on curseg->alloc_type