History

bcache: Add bch_btree_keys_u64s_remaining()

Helper function to explicitly check how much space is free in a btree node

Kent Overstreet committed 13 years ago

Commit 59158fd1 parent a85e9683 files · +31 −13Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/bcache.h+1−0
@@ -39,6 +39,7 @@ static inline void SET_##name(struct bkey *k, unsigned i, __u64 v) \ · 38 unmodified lines
39}39}
40 40
41#define KEY_SIZE_BITS 1641#define KEY_SIZE_BITS 16
42#define KEY_MAX_U64S 8
42 43
43KEY_FIELD(KEY_PTRS, high, 60, 3)44KEY_FIELD(KEY_PTRS, high, 60, 3)
44KEY_FIELD(HEADER_SIZE, high, 58, 2)45KEY_FIELD(HEADER_SIZE, high, 58, 2)