diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-06-24 13:19:25 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:07 -0400 |
commit | fdc6b08451167bfc1ae260b252ad2bf2f9735f50 (patch) | |
tree | 59a1d016ed2255d877644b257d64ba9a54268be5 /fs/bcachefs/btree_key_cache.h | |
parent | 78d66ab1ca541ba95a9ad89780466398b348c230 (diff) |
bcachefs: Fix shift-by-64 in bch2_bkey_format_validate()
We need to ensure that packed formats can't represent fields larger than
the unpacked format, which is a bit tricky since the calculations can
also overflow a u64. This patch fixes a shift and simplifies the overall
calculations.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/btree_key_cache.h')
0 files changed, 0 insertions, 0 deletions