diff options
author | 2016-12-05 12:32:50 +1100 | |
---|---|---|
committer | 2016-12-05 12:32:50 +1100 | |
commit | d2a047f31e86941fa896e0e3271536d50aba415e (patch) | |
tree | 0ff8117d63fcf7b839a3facd7f2ca307efdb60c0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xfs: several xattr functions can be void (diff) | |
download | wireguard-linux-d2a047f31e86941fa896e0e3271536d50aba415e.tar.xz wireguard-linux-d2a047f31e86941fa896e0e3271536d50aba415e.zip |
xfs: forbid AG btrees with level == 0
There is no such thing as a zero-level AG btree since even a single-node
zero-records btree has one level. Btree cursor constructors read
cur_nlevels straight from disk and then access things like
cur_bufs[cur_nlevels - 1] which is /really/ bad if cur_nlevels is zero!
Therefore, strengthen the verifiers to prevent this possibility.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions