Skip to contentSkip to conversation

(resubmit) Use list_head-s in inetpeer.c

PATCH Applied Pavel Emelyanov 2 participants 2 messages Nov 12, 2007 – Nov 13, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 (resubmit) Use list_head-s in inetpeer.c

The inetpeer.c tracks the LRU list of inet_perr-s, but makes it by hands. Use the list_head-s for this.

---

include/net/inetpeer.h +1 -1
index aa10a81..ad8404b 100644
@@ -22,7 +22,7 @@ struct inet_peer
 	__be32			v4daddr;	/* peer's address */
 	__u16			avl_height;
 	__u16			ip_id_count;	/* IP ID for the next packet */
-	struct inet_peer	*unused_next, **unused_prevp;
+	struct list_head	unused;
 	__u32			dtime;		/* the time of last use of not
 						 * referenced entries */
 	atomic_t		refcnt;
net/ipv4/inetpeer.c +15 -27

86 lines not on this page · raw message