[PATCH 5.4 116/120] xfs: refactor agfl length computation function