diff options
| author | Michal Marek <mmarek@suse.cz> | 2010-10-28 00:15:57 +0200 | 
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2010-10-28 00:15:57 +0200 | 
| commit | b74b953b998bcc2db91b694446f3a2619ec32de6 (patch) | |
| tree | 6ce24caabd730f6ae9287ed0676ec32e6ff31e9d /net/unix/garbage.c | |
| parent | abb438526201c6a79949ad45375c051b6681c253 (diff) | |
| parent | f6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff) | |
Merge commit 'v2.6.36' into kbuild/misc
Update to be able to fix a recent change to scripts/basic/docproc.c
(commit eda603f).
Diffstat (limited to 'net/unix/garbage.c')
| -rw-r--r-- | net/unix/garbage.c | 14 | 
1 files changed, 2 insertions, 12 deletions
| diff --git a/net/unix/garbage.c b/net/unix/garbage.c index 19c17e4a0c8..c8df6fda0b1 100644 --- a/net/unix/garbage.c +++ b/net/unix/garbage.c @@ -74,7 +74,6 @@  #include <linux/un.h>  #include <linux/net.h>  #include <linux/fs.h> -#include <linux/slab.h>  #include <linux/skbuff.h>  #include <linux/netdevice.h>  #include <linux/file.h> @@ -154,15 +153,6 @@ void unix_notinflight(struct file *fp)  	}  } -static inline struct sk_buff *sock_queue_head(struct sock *sk) -{ -	return (struct sk_buff *)&sk->sk_receive_queue; -} - -#define receive_queue_for_each_skb(sk, next, skb) \ -	for (skb = sock_queue_head(sk)->next, next = skb->next; \ -	     skb != sock_queue_head(sk); skb = next, next = skb->next) -  static void scan_inflight(struct sock *x, void (*func)(struct unix_sock *),  			  struct sk_buff_head *hitlist)  { @@ -170,7 +160,7 @@ static void scan_inflight(struct sock *x, void (*func)(struct unix_sock *),  	struct sk_buff *next;  	spin_lock(&x->sk_receive_queue.lock); -	receive_queue_for_each_skb(x, next, skb) { +	skb_queue_walk_safe(&x->sk_receive_queue, skb, next) {  		/*  		 *	Do we have file descriptors ?  		 */ @@ -226,7 +216,7 @@ static void scan_children(struct sock *x, void (*func)(struct unix_sock *),  		 * and perform a scan on them as well.  		 */  		spin_lock(&x->sk_receive_queue.lock); -		receive_queue_for_each_skb(x, next, skb) { +		skb_queue_walk_safe(&x->sk_receive_queue, skb, next) {  			u = unix_sk(skb->sk);  			/* | 
