Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xfs: correct calculation for agend and blockcount
The agend should be "start + length - 1", then, blockcount should be "end + 1 - start". Correct 2 calculation mistakes. Also, rename "agend" to "range_agend" because it's not the end of the AG per se; it's the end of the dead region within an AG's agblock space. Fixes: 5cf32f6 ("xfs: fix the calculation for "end" and "length"") Signed-off-by: Shiyang Ruan <[email protected]> Reviewed-by: "Darrick J. Wong" <[email protected]> Signed-off-by: Chandan Babu R <[email protected]>
- Loading branch information