(resubmit) Use list_head-s in inetpeer.c
Subsystems (3)
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.
Signed-off-by Pavel Emelyanov <[email protected]>
---
include/net/inetpeer.h +1 -1
@@ -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
From: Pavel Emelyanov <[email protected]>
Date: Mon, 12 Nov 2007 17:26:57 +0300
Quoted 4 lines
The
inetpeer.ctracks the LRU list of inet_perr-s, but makes it by hands. Use the list_head-s for this.Signed-off-by Pavel Emelyanov <[email protected]>
Applied, thanks Pavel.