linux-sg2042/fs/afs
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
..
Makefile [AFS]: Replace rtnetlink client by direct dev_base walking 2007-05-03 03:28:49 -07:00
afs.h [AFS]: Add "directory write" support. 2007-04-26 15:59:35 -07:00
afs_cm.h [AFS]: Implement the CB.InitCallBackState3 operation. 2007-04-26 15:58:49 -07:00
afs_fs.h [AFS]: Add "directory write" support. 2007-04-26 15:59:35 -07:00
afs_vl.h [AF_RXRPC]: Make the in-kernel AFS filesystem use AF_RXRPC. 2007-04-26 15:55:03 -07:00
cache.c [AF_RXRPC]: Make the in-kernel AFS filesystem use AF_RXRPC. 2007-04-26 15:55:03 -07:00
cache.h [AFS]: Clean up the AFS sources 2007-04-26 15:49:28 -07:00
callback.c [AFS]: Fix use of __exit functions from __init path 2007-05-03 03:12:46 -07:00
cell.c [AFS]: Add security support. 2007-04-26 15:57:07 -07:00
cmservice.c [AFS]: Fix memory leak in SRXAFSCB_GetCapabilities 2007-05-03 03:27:39 -07:00
dir.c mm: make read_cache_page synchronous 2007-05-07 12:12:51 -07:00
file.c [AFS]: Add "directory write" support. 2007-04-26 15:59:35 -07:00
fsclient.c [AFS/AF_RXRPC]: Miscellaneous fixes. 2007-05-03 03:11:29 -07:00
inode.c [AFS]: Fix u64 printing in debug logging. 2007-04-26 16:06:22 -07:00
internal.h [AFS]: Adjust the new netdevice scanning code 2007-05-03 03:29:41 -07:00
main.c [AFS]: Adjust the new netdevice scanning code 2007-05-03 03:29:41 -07:00
misc.c [AFS]: Add "directory write" support. 2007-04-26 15:59:35 -07:00
mntpt.c mm: make read_cache_page synchronous 2007-05-07 12:12:51 -07:00
netdevices.c [NET]: Rework dev_base via list_head (v3) 2007-05-03 15:13:45 -07:00
proc.c [AF_RXRPC]: Make the in-kernel AFS filesystem use AF_RXRPC. 2007-04-26 15:55:03 -07:00
rxrpc.c [AF_RXRPC/AFS]: Arch-specific fixes. 2007-04-27 15:28:45 -07:00
security.c [AFS]: Add "directory write" support. 2007-04-26 15:59:35 -07:00
server.c [AFS]: Add "directory write" support. 2007-04-26 15:59:35 -07:00
super.c slab allocators: Remove SLAB_DEBUG_INITIAL flag 2007-05-07 12:12:57 -07:00
vlclient.c [AFS]: Add security support. 2007-04-26 15:57:07 -07:00
vlocation.c [AFS]: Fix use of __exit functions from __init path 2007-05-03 03:12:46 -07:00
vnode.c [AFS]: Add "directory write" support. 2007-04-26 15:59:35 -07:00
volume.c [AFS]: Add "directory write" support. 2007-04-26 15:59:35 -07:00