commit | 59158fde429fb5d18064e2734b3dd5e6048affbd | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kmo@daterainc.com> | Mon Nov 11 19:03:54 2013 -0800 |
committer | Kent Overstreet <kmo@daterainc.com> | Wed Jan 08 13:05:13 2014 -0800 |
tree | 1cc4d34e0ba1523155dad7b8726b5249d050cc34 | |
parent | a85e968e66a175c86d0410719ea84a5bd0f1d070 [diff] [blame] |
bcache: Add bch_btree_keys_u64s_remaining() Helper function to explicitly check how much space is free in a btree node Signed-off-by: Kent Overstreet <kmo@daterainc.com>
diff --git a/include/uapi/linux/bcache.h b/include/uapi/linux/bcache.h index ae66311..22b6ad3 100644 --- a/include/uapi/linux/bcache.h +++ b/include/uapi/linux/bcache.h
@@ -39,6 +39,7 @@ } #define KEY_SIZE_BITS 16 +#define KEY_MAX_U64S 8 KEY_FIELD(KEY_PTRS, high, 60, 3) KEY_FIELD(HEADER_SIZE, high, 58, 2)