Dark matter in galaxies and the growth of giant black holes