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