[PATCH] Really ignore kmem_cache_destroy return value
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 27 Sep 2006 08:49:40 +0000 (01:49 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:10 +0000 (08:26 -0700)
commit1a1d92c10dd24bbdc28b3d6e2d03ec199dd3a65b
treefade83955f75e718e39153d6f81d221403338bed
parentf52720ca5f48574e347dff35ffe6b389ace61537
[PATCH] Really ignore kmem_cache_destroy return value

* Rougly half of callers already do it by not checking return value
* Code in drivers/acpi/osl.c does the following to be sure:

(void)kmem_cache_destroy(cache);

* Those who check it printk something, however, slab_error already printed
  the name of failed cache.
* XFS BUGs on failed kmem_cache_destroy which is not the decision
  low-level filesystem driver should make. Converted to ignore.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
40 files changed:
drivers/acpi/osl.c
drivers/infiniband/core/mad.c
drivers/usb/host/uhci-hcd.c
fs/adfs/super.c
fs/affs/super.c
fs/befs/linuxvfs.c
fs/bfs/inode.c
fs/cifs/cifsfs.c
fs/coda/inode.c
fs/efs/super.c
fs/ext2/super.c
fs/ext3/super.c
fs/fat/cache.c
fs/fat/inode.c
fs/hfs/super.c
fs/hfsplus/super.c
fs/hpfs/super.c
fs/isofs/inode.c
fs/minix/inode.c
fs/ncpfs/inode.c
fs/nfs/direct.c
fs/nfs/inode.c
fs/nfs/pagelist.c
fs/nfs/read.c
fs/nfs/write.c
fs/nfsd/nfs4state.c
fs/ntfs/super.c
fs/ocfs2/dlm/dlmfs.c
fs/qnx4/inode.c
fs/reiserfs/super.c
fs/romfs/inode.c
fs/smbfs/inode.c
fs/smbfs/request.c
fs/udf/super.c
fs/ufs/super.c
fs/xfs/linux-2.6/kmem.h
ipc/mqueue.c
mm/shmem.c
net/sunrpc/rpc_pipe.c
net/sunrpc/sched.c