[PATCH 6.1 17/26] xfs: fix the calculation for "end" and "length"