X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Finterval_tree.h;h=82ccea1ffbc3ffafba67e2dbfb4e7e9b1ffd3edc;hb=6acf93339ad3297f2e5c659f2269c05df6198f74;hp=b50278b0855f8aed1cbaec1e6a1b35b9cfbf04ae;hpb=7df9488e9047e27f27db09d3c5c12ffa8ca83f03;p=fs%2Flustre-release.git diff --git a/lustre/include/interval_tree.h b/lustre/include/interval_tree.h index b50278b..82ccea1 100644 --- a/lustre/include/interval_tree.h +++ b/lustre/include/interval_tree.h @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -26,7 +24,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -88,6 +86,13 @@ static inline void interval_set(struct interval_node *node, node->in_max_high = end; } +static inline void interval_init(struct interval_node *node) +{ + memset(node, 0, sizeof(*node)); +} + +int node_equal(struct interval_node *n1, struct interval_node *n2); + /* Rules to write an interval callback. * - the callback returns INTERVAL_ITER_STOP when it thinks the iteration * should be stopped. It will then cause the iteration function to return