aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/bkey_buf.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bcachefs: Move bkey bkey_unpack_key() to bkey.hKent Overstreet2023-10-221-0/+1
| | | | | | | | | | Long ago, bkey_unpack_key() was added to bset.h instead of bkey.h because bkey.h didn't include btree_types.h, which it needs for the compiled unpack function. This patch finally moves it to the proper location. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
* bcachefs: Reduce/kill BKEY_PADDED useKent Overstreet2023-10-221-0/+60
With various newer key types - stripe keys, inline data extents - the old approach of calculating the maximum size of the value is becoming more and more error prone. Better to switch to bkey_on_stack, which can dynamically allocate if necessary to handle any size bkey. In particular we also want to get rid of BKEY_EXTENT_VAL_U64s_MAX. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>