[PATCH 5.4 V2 15/19] xfs: refactor agfl length computation function