[PATCH 6.1 48/73] xfs: fix the calculation for "end" and "length"