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