diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-10-25 18:18:21 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-31 08:58:20 -0700 |
commit | f850995f60e49818093ef5e477cdb0ff2c11a0a4 (patch) | |
tree | c2c25e75c9fded537a94a85dfbc973a871cfa998 /.clang-format | |
parent | 950f0d50ee7138d7e631aefea8528d485426eda6 (diff) | |
download | linux-f850995f60e49818093ef5e477cdb0ff2c11a0a4.tar.gz |
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 a refcount
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>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions