Helper function to explicitly check how much space is free in a btree node
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -39,6 +39,7 @@ static inline void SET_##name(struct bkey *k, unsigned i, __u64 v) \ · 38 unmodified lines | ||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | #define KEY_SIZE_BITS 16 |
| 42 | +#define KEY_MAX_U64S 8 | |
| 42 | 43 | |
| 43 | 44 | KEY_FIELD(KEY_PTRS, high, 60, 3) |
| 44 | 45 | KEY_FIELD(HEADER_SIZE, high, 58, 2) |