aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_key_cache.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-06-24 13:19:25 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:07 -0400
commitfdc6b08451167bfc1ae260b252ad2bf2f9735f50 (patch)
tree59a1d016ed2255d877644b257d64ba9a54268be5 /fs/bcachefs/btree_key_cache.h
parent78d66ab1ca541ba95a9ad89780466398b348c230 (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