linux_inet_diag: better align listener_stats struct
authorEric Wong <normalperson@yhbt.net>
Sat, 20 Apr 2013 22:59:32 +0000 (22:59 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 20 Apr 2013 22:59:32 +0000 (22:59 +0000)
commit241cfdd395c7d045f0048a1a0410ae28e6555c3b
treefa77b0cf1a3a2c7a87b60b9dfbaea1f74aa5e35c
parent6601f1ab43e90391932ad133335c814980bf7428
linux_inet_diag: better align listener_stats struct

Using an extra 4 bytes for the listener_stats should not
significantly increase space usage, and it has the side benefit
of making our code slightly smaller.

$ ~/linux/scripts/bloat-o-meter before.so after.so
add/remove: 0/0 grow/shrink: 1/2 up/down: 14/-32 (-18)
function                                     old     new   delta
tcp_stats                                    392     406     +14
st_to_hash                                   195     187      -8
diag                                         763     739     -24
ext/raindrops/linux_inet_diag.c