diff options
| author | Kent Overstreet <[email protected]> | 2024-05-19 20:09:35 -0400 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2024-05-20 05:37:26 -0400 |
| commit | 6b74fdcc8e25323cd256a573186f9c6c6c2410c0 (patch) | |
| tree | 1a7b6938162097c99bbd38aff7b8f3a9ad560aa5 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
| parent | c06a8b75679d73473c0c382bcc676ee4b7657bee (diff) | |
bcachefs: bch2_checksum() returns 0 for unknown checksum type
This fixes missing guards on trying to calculate a checksum with an
invalid/unknown checksum type; moving the guards up to e.g. btree_io.c
might be "more correct", but doesn't buy us anything - an unknown
checksum type will always be flagged as at least a checksum error so we
aren't losing any safety doing it this way and it makes it less likely
to accidentally pop an assert we don't want.
Reported-by: [email protected]
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions