diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-01-17 05:54:13 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-01-18 08:00:47 +0300 |
commit | a5f460b168820335706c0d8cd8c8bc3657f1dd5e (patch) | |
tree | dda319e41a9af8cacf8599bcb45d4a3cd3ea6ea6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 55e45429ce3e4ac9dd2bf4937b1a499a69ccc4ca (diff) | |
download | linux-a5f460b168820335706c0d8cd8c8bc3657f1dd5e.tar.xz |
xfs: check that br_blockcount doesn't overflow
xfs_bmbt_irec.br_blockcount is declared as xfs_filblks_t, which is an
unsigned 64-bit integer. Though the bmbt helpers will never set a value
larger than 2^21 (since the underlying on-disk extent record has a
length field that is only 21 bits wide), we should be a little defensive
about checking that a bmbt record doesn't exceed what we're expecting or
overflow into the next AG.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions