Re: [RFC] Generalized prio_tree, revisited

From: Werner Almesberger (werner_at_almesberger.net)
Date: 12/16/04

  • Next message: Greg KH: "Re: debugfs in the namespace"
    Date:	Thu, 16 Dec 2004 16:38:16 -0300
    To: Rajesh Venkatasubramanian <vrajesh@umich.edu>
    
    

    Rajesh Venkatasubramanian wrote:
    > I wonder whether we should use [start, last]

    Yes, good idea. I've changed it in my tree.

    > prio_tree_replace should be static in prio_tree.c.

    Indeed. Thanks !

    > > +struct prio_tree_node *prio_tree_first(struct prio_tree_iter *iter);
    >
    > Should we go with prio_tree_iter_init and remove prio_tree_first
    > (similar to vma_prio_tree_next) ? I am not very particular about it,
    > though.

    You mean to roll prio_tree_first and prio_tree_iter_init into a
    single call, so that prio_tree_first would look similar to the
    one in 2.6.7 ?

    > > +static void get_index(const struct prio_tree_root *root,
    >
    > Should be "inline" ?

    That's of course what we hope to happen, but I'd leave the inlining
    decision to the compiler. After all, it's supposed to be really
    good at such things nowadays ;-)

    Thanks,
    - Werner

    -- 
      _________________________________________________________________________
     / Werner Almesberger, Buenos Aires, Argentina     werner@almesberger.net /
    /_http://www.almesberger.net/____________________________________________/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Greg KH: "Re: debugfs in the namespace"

    Relevant Pages

    • Re: [PATCH][2.6]
      ... Now as in I'll add it to my i2c tree, which will get picked up by -mm ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [patch] Graphire3 support
      ... >>Thanks, applied to my tree. ... > This patch fixes it. ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [BK PATCH] add SMBIOS tables to sysfs
      ... You can go ahead and add it to your tree. ... > instances of this struct. ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH] oom killer (Core)
      ... > the tree). ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: Linux 2.4.28-rc1
      ... considered for the 2.4 tree. ... Regards, ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)