Dublin beat Mayo in All Ireland