[PATCH openEuler-1.0-LTS 2/5] md: Use enum for overloaded magic numbers used by mddev->curr_resync