Ilya Dryomov fcd00b68bb 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>
2016-05-26 00:36:23 +02:00
..
2016-05-26 00:36:22 +02:00
2016-03-25 18:51:55 +01:00
2016-05-26 00:36:22 +02:00
2016-05-26 00:36:22 +02:00
2012-05-16 14:28:27 -05:00
2013-12-31 20:32:01 +02:00
2013-12-31 20:32:01 +02:00
2016-05-26 00:36:23 +02:00
2016-03-25 18:51:52 +01:00
2015-04-22 18:33:41 +03:00
2016-03-25 18:51:55 +01:00