diff options
| author | Ilya Dryomov <idryomov@gmail.com> | 2016-04-28 16:07:22 +0200 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-26 00:36:23 +0200 |
| commit | fcd00b68bbe2bf5606cb45c2cd4a250a390bcc1f (patch) | |
| tree | 7db18711377a59e78b22df4f6d73411620cc92df /include/linux/ceph/buffer.h | |
| parent | 42a2c09f2b0b95fa147bcdb56cdc02b980b9ac5e (diff) | |
| download | cachepc-linux-fcd00b68bbe2bf5606cb45c2cd4a250a390bcc1f.tar.gz cachepc-linux-fcd00b68bbe2bf5606cb45c2cd4a250a390bcc1f.zip | |
libceph: DEFINE_RB_FUNCS macro
Given
struct foo {
u64 id;
struct rb_node bar_node;
};
generate insert_bar(), erase_bar() and lookup_bar() functions with
DEFINE_RB_FUNCS(bar, struct foo, id, bar_node)
The key is assumed to be an integer (u64, int, etc), compared with
< and >. nodefld has to be initialized with RB_CLEAR_NODE().
Start using it for MDS, MON and OSD requests and OSD sessions.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph/buffer.h')
0 files changed, 0 insertions, 0 deletions
