[PATCH openEuler-1.0-LTS v2] mm: enhance variables check and sync for pin mem