Reversible and irreversible dispersion in a porous medium