commit | 824910cf1c4b3d05f245a2115909e6cd4ed5b19a | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <djwong@kernel.org> | Wed Oct 12 12:20:30 2022 -0700 |
committer | Darrick J. Wong <djwong@kernel.org> | Fri Oct 14 14:24:38 2022 -0700 |
tree | ad45aa39fad6b98bca8e9e9d5e28be1137939e9c | |
parent | 84d197557a7cd1716ec442782074dbc0e1617c3a [diff] |
xfs: make sure aglen never goes negative in xfs_refcount_adjust_extents Prior to calling xfs_refcount_adjust_extents, we trimmed agbno/aglen such that the end of the range would not be in the middle of the record. If this is no longer the case, something is seriously wrong with the btree. Bail out with a corruption error. Signed-off-by: Darrick J. Wong <djwong@kernel.org>