[PATCH openEuler-5.10-LTS-SP1 17/30] md: Use enum for overloaded magic numbers used by mddev->curr_resync