From: hno <> Date: Tue, 9 Jan 2001 08:43:08 +0000 (+0000) Subject: Adjusted the sizes of swap_filen and swap_dirn to the old ones (24, 8). This X-Git-Tag: SQUID_3_0_PRE1~1667 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=103b5a5691bd614d5469a5bee25bf5dcb8d7dd01;p=thirdparty%2Fsquid.git Adjusted the sizes of swap_filen and swap_dirn to the old ones (24, 8). This saves us 4 bytes per StoreEntry. --- diff --git a/src/structs.h b/src/structs.h index efcec9825e..12047626a3 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1,6 +1,6 @@ /* - * $Id: structs.h,v 1.376 2001/01/09 01:13:36 wessels Exp $ + * $Id: structs.h,v 1.377 2001/01/09 01:43:08 hno Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -1434,16 +1434,16 @@ struct _MemObject { struct _StoreEntry { hash_link hash; /* must be first */ MemObject *mem_obj; + RemovalPolicyNode repl; time_t timestamp; time_t lastref; time_t expires; time_t lastmod; size_t swap_file_sz; + sfileno swap_filen:24; + sdirno swap_dirn:8; u_short refcount; u_short flags; - sdirno swap_dirn; - sfileno swap_filen; - RemovalPolicyNode repl; u_short lock_count; /* Assume < 65536! */ mem_status_t mem_status:3; ping_status_t ping_status:3; diff --git a/src/typedefs.h b/src/typedefs.h index 5d784b21f1..09aa0c2ee0 100644 --- a/src/typedefs.h +++ b/src/typedefs.h @@ -1,6 +1,6 @@ /* - * $Id: typedefs.h,v 1.117 2001/01/08 19:36:27 hno Exp $ + * $Id: typedefs.h,v 1.118 2001/01/09 01:43:08 hno Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -39,7 +39,7 @@ typedef unsigned int mem_status_t; typedef unsigned int ping_status_t; typedef unsigned int swap_status_t; typedef int sfileno; -typedef int sdirno; +typedef char sdirno; typedef struct { size_t bytes;