[PATCH openEuler-1.0-LTS 2/4] ovl: factor out helper ovl_get_root()