fix quadratic behavior of shrink_dcache_parent()