[PATCH 6.12 140/184] loop: Simplify discard granularity calc