Whamcloud - gitweb
LU-14854 mdd: proper handle error in mdd_swap_layouts()
[fs/lustre-release.git] / lustre / ptlrpc / nodemap_internal.h
index 6d6b9d7..96636ae 100644 (file)
 #define _NODEMAP_INTERNAL_H
 
 #include <lustre_nodemap.h>
-#include <interval_tree.h>
+#include <linux/rbtree.h>
 
 #define DEFAULT_NODEMAP "default"
 
-/* Turn on proc debug interface to allow OSS and
- * MDS nodes to configure nodemap independently of
- * MGS (since the nodemap distribution is not written
- * yet */
-#define NODEMAP_PROC_DEBUG 1
-
 /* Default nobody uid and gid values */
 
 #define NODEMAP_NOBODY_UID 99
@@ -64,7 +58,10 @@ struct lu_nid_range {
        /* list for nodemap */
        struct list_head         rn_list;
        /* nid interval tree */
-       struct interval_node     rn_node;
+       lnet_nid_t               rn_start,
+                                rn_end,
+                                rn_subtree_last;
+       struct rb_node           rn_rb;
 };
 
 struct lu_idmap {