All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Linus Lüssing" <linus.luessing@web.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: remove extra layer between hash and hash element - hash bucket
Date: Thu, 10 Feb 2011 14:03:03 +0100	[thread overview]
Message-ID: <20110210130303.GD13038@Sellars> (raw)
In-Reply-To: <1297275550-12420-2-git-send-email-lindner_marek@yahoo.de>

> diff --git a/batman-adv/compat.h b/batman-adv/compat.h
> index a76d0be..29a3203 100644
> --- a/batman-adv/compat.h
> +++ b/batman-adv/compat.h
> @@ -270,4 +270,12 @@ int bat_seq_printf(struct seq_file *m, const char *f, ...);
>  
>  #endif /* < KERNEL_VERSION(2, 6, 33) */
>  
> +#define hlist_first_rcu(head) (*((struct hlist_node **)(&(head)->first)))
> +#define hlist_next_rcu(node) (*((struct hlist_node **)(&(node)->next)))
> +
> +#define __hlist_for_each_rcu(pos, head) \
> +	for (pos = rcu_dereference(hlist_first_rcu(head)); \
> +	pos && ({ prefetch(pos->next); 1; }); \
> +	pos = rcu_dereference(hlist_next_rcu(pos)))
> +
>  #endif /* _NET_BATMAN_ADV_COMPAT_H_ */
Isn't there a #define with < KERNEL_VERSION(2, 6, 37) missing?
(Haven't checked much else about this patch yet)

Cheers, Linus

  reply	other threads:[~2011-02-10 13:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-09 18:18 [B.A.T.M.A.N.] reordered rcu (part II) Marek Lindner
2011-02-09 18:19 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: separate ethernet comparing calls from hash functions Marek Lindner
2011-02-09 18:19 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: remove extra layer between hash and hash element - hash bucket Marek Lindner
2011-02-10 13:03   ` Linus Lüssing [this message]
2011-02-10 13:36     ` Marek Lindner
2011-02-13 21:36   ` [B.A.T.M.A.N.] [PATCHv2 2/4] " Marek Lindner
2011-02-13 21:39 ` [B.A.T.M.A.N.] [PATCH 3/4] batman-adv: Correct rcu refcounting for orig_node Marek Lindner
2011-02-13 21:40 ` [B.A.T.M.A.N.] [PATCH 4/4] batman-adv: increase refcount in create_neighbor to be consistent Marek Lindner
2011-02-18 12:26 ` [B.A.T.M.A.N.] reordered rcu (part II) Marek Lindner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110210130303.GD13038@Sellars \
    --to=linus.luessing@web.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.