Mash the potatoes coarsely. They should be slightly lumpy, but the lumps should be small so the filling fits easily into samosas.
Heat the oil in a sauté pan over moderate heat. When the oil is hot, add the cumin seeds. Cook just until the seeds darken slightly and become aromatic.
Add the onion and turmeric. Sauté until the onion is soft.