OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Use list_head-s in inetpeer.c
Re: [PATCH] Use list_head-s in inetpeer.c [message #23047 is a reply to message #23034] Sun, 11 November 2007 05:31 Go to previous messageGo to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Sat, 10 Nov 2007 17:32:58 +0300

> 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 <xemul@openvz.org>

This makes every inetpeer struct consume 8 more bytes, and on some
systems we have can have many of these objects active.  That space
savings is why this was done the way it was.

It would be nice to have "tailq" like interfaces in linux/list.h
for situations like this.

Please do not submit a patch implementing that until the 2.6.25
merge window, however, thanks.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH 1/6 mm] swapoff: scan ptes preemptibly
Next Topic: net-2.6-netns
Goto Forum:
  


Current Time: Sat Aug 17 01:25:10 GMT 2024

Total time taken to generate the page: 0.03791 seconds