original_kernel/net
Christoph Lameter 50953fe9e0 slab allocators: Remove SLAB_DEBUG_INITIAL flag
I have never seen a use of SLAB_DEBUG_INITIAL.  It is only supported by
SLAB.

I think its purpose was to have a callback after an object has been freed
to verify that the state is the constructor state again?  The callback is
performed before each freeing of an object.

I would think that it is much easier to check the object state manually
before the free.  That also places the check near the code object
manipulation of the object.

Also the SLAB_DEBUG_INITIAL callback is only performed if the kernel was
compiled with SLAB debugging on.  If there would be code in a constructor
handling SLAB_DEBUG_INITIAL then it would have to be conditional on
SLAB_DEBUG otherwise it would just be dead code.  But there is no such code
in the kernel.  I think SLUB_DEBUG_INITIAL is too problematic to make real
use of, difficult to understand and there are easier ways to accomplish the
same effect (i.e.  add debug code before kfree).

There is a related flag SLAB_CTOR_VERIFY that is frequently checked to be
clear in fs inode caches.  Remove the pointless checks (they would even be
pointless without removeal of SLAB_DEBUG_INITIAL) from the fs constructors.

This is the last slab flag that SLUB did not support.  Remove the check for
unimplemented flags from SLUB.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-07 12:12:57 -07:00
..
802
8021q [NET]: Rework dev_base via list_head (v3) 2007-05-03 15:13:45 -07:00
appletalk
atm
ax25
bluetooth
bridge [NET]: Rework dev_base via list_head (v3) 2007-05-03 15:13:45 -07:00
core [NET]: Rework dev_base via list_head (v3) 2007-05-03 15:13:45 -07:00
dccp
decnet [NET]: Rework dev_base via list_head (v3) 2007-05-03 15:13:45 -07:00
econet
ethernet
ieee80211
ipv4 [TCP]: zero out rx_opt in tcp_disconnect() 2007-05-03 17:32:28 -07:00
ipv6 Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2007-05-06 13:21:57 -07:00
ipx
irda
iucv [AF_IUCV]: Compile fix - adopt to skbuff changes. 2007-05-05 11:41:18 -07:00
key
lapb
llc [NET]: Rework dev_base via list_head (v3) 2007-05-03 15:13:45 -07:00
mac80211 [MAC80211]: Add debugfs attributes. 2007-05-05 11:46:38 -07:00
netfilter
netlabel
netlink [NETLINK]: Remove bogus BUG_ON 2007-05-04 12:15:11 -07:00
netrom [NET]: Rework dev_base via list_head (v3) 2007-05-03 15:13:45 -07:00
packet
rose [NET]: Rework dev_base via list_head (v3) 2007-05-03 15:13:45 -07:00
rxrpc [AF_RXRPC]: Sort out MTU handling. 2007-05-04 12:41:11 -07:00
sched [NET]: Rework dev_base via list_head (v3) 2007-05-03 15:13:45 -07:00
sctp [SCTP]: Set assoc_id correctly during INIT collision. 2007-05-04 13:55:27 -07:00
sunrpc slab allocators: Remove SLAB_DEBUG_INITIAL flag 2007-05-07 12:12:57 -07:00
tipc Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2007-05-06 13:21:57 -07:00
unix
wanrouter
wireless
x25
xfrm [XFRM] SPD info TLV aggregation 2007-05-04 12:55:39 -07:00
Kconfig [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
Makefile [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
TUNABLE
compat.c
nonet.c
socket.c slab allocators: Remove SLAB_DEBUG_INITIAL flag 2007-05-07 12:12:57 -07:00
sysctl_net.c