android_kernel_xiaomi_sm8350/fs/jfs
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
..
acl.c JFS: White space cleanup 2006-10-02 09:55:27 -05:00
endian24.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
file.c [PATCH] mark struct inode_operations const 2 2007-02-12 09:48:46 -08:00
inode.c JFS: Add lockdep annotations 2007-01-09 14:14:48 -06:00
ioctl.c [PATCH] severing fs.h, radix-tree.h -> sched.h 2006-12-04 02:00:24 -05:00
jfs_acl.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_btree.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_debug.c JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_debug.h JFS: Remove incorrect kgdb define 2007-01-26 10:14:36 -06:00
jfs_dinode.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_dmap.c JFS: Add lockdep annotations 2007-01-09 14:14:48 -06:00
jfs_dmap.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_dtree.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
jfs_dtree.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_extent.c JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_extent.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_filsys.h JFS: Fix conflicting superblock flags 2006-12-06 17:48:32 -06:00
jfs_imap.c JFS: Add lockdep annotations 2007-01-09 14:14:48 -06:00
jfs_imap.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_incore.h JFS: Add lockdep annotations 2007-01-09 14:14:48 -06:00
jfs_inode.c JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_inode.h [PATCH] mark struct inode_operations const 2 2007-02-12 09:48:46 -08:00
jfs_lock.h JFS: call io_schedule() instead of schedule() to avoid deadlock 2007-01-17 21:18:35 -06:00
jfs_logmgr.c [PATCH] Add include/linux/freezer.h and move definitions from sched.h 2006-12-07 08:39:27 -08:00
jfs_logmgr.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_metapage.c slab allocators: Remove SLAB_DEBUG_INITIAL flag 2007-05-07 12:12:57 -07:00
jfs_metapage.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_mount.c JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_superblock.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_txnmgr.c JFS: Get rid of "may be used uninitialized" warnings 2007-02-09 15:36:47 -06:00
jfs_txnmgr.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_types.h
jfs_umount.c JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_unicode.c JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_unicode.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_uniupr.c JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_xattr.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
jfs_xtree.c JFS: Avoid BUG() on a damaged file system 2007-01-09 08:57:34 -06:00
jfs_xtree.h JFS: White space cleanup 2006-10-02 09:55:27 -05:00
Makefile
namei.c [PATCH] mark struct inode_operations const 2 2007-02-12 09:48:46 -08:00
resize.c JFS: White space cleanup 2006-10-02 09:55:27 -05:00
super.c slab allocators: Remove SLAB_DEBUG_INITIAL flag 2007-05-07 12:12:57 -07:00
symlink.c [PATCH] mark struct inode_operations const 2 2007-02-12 09:48:46 -08:00
xattr.c JFS: Remove redundant xattr permission checking 2006-11-02 10:50:40 -06:00