original_kernel/lib
Andrew Morton 8d3b35914a [PATCH] inotify/idr leak fix
Fix a bug which was reported and diagnosed by
Stefan Jones <stefan.jones@churchillrandoms.co.uk>

IDR trees include a cache of idr_layer objects.  There's no way to destroy
this cache, so when we discard an overall idr tree we end up leaking some
memory.

Add and use idr_destroy() for this.  v9fs and infiniband also need to use
idr_destroy() to avoid leaks.

Or, we make the cache global, like radix_tree_preload().  Which is probably
better.  Later.

Cc: Eric Van Hensbergen <ericvh@ericvh.myip.org>
Cc: Roland Dreier <rolandd@cisco.com>
Cc: Robert Love <rml@novell.com>
Cc: John McCutchan <ttb@tentacle.dhs.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-23 16:38:39 -07:00
..
reed_solomon
zlib_deflate
zlib_inflate
.gitignore Add some basic .gitignore files 2005-10-18 08:26:15 -07:00
Kconfig
Kconfig.debug [PATCH] x86-64: Allow frame pointer and fix help text. 2005-09-12 10:50:58 -07:00
Makefile [PATCH] spinlock consolidation 2005-09-10 10:06:21 -07:00
bitmap.c
bust_spinlocks.c
cmdline.c
crc-ccitt.c
crc16.c
crc32.c
crc32defs.h
ctype.c
dec_and_lock.c [LIB]: Consolidate _atomic_dec_and_lock() 2005-09-14 21:47:01 -07:00
div64.c
dump_stack.c
errno.c
extable.c
find_next_bit.c
gen_crc32table.c
genalloc.c
halfmd4.c
idr.c [PATCH] inotify/idr leak fix 2005-10-23 16:38:39 -07:00
inflate.c
int_sqrt.c
iomap.c
kernel_lock.c [PATCH] spinlock consolidation 2005-09-10 10:06:21 -07:00
klist.c
kobject.c
kobject_uevent.c
kref.c
libcrc32c.c
parser.c
prio_tree.c
radix-tree.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
rbtree.c
rwsem-spinlock.c
rwsem.c
semaphore-sleepers.c
sha1.c
smp_processor_id.c
sort.c [PATCH] lib/sort.c: small cleanups 2005-09-10 10:06:31 -07:00
spinlock_debug.c [PATCH] spinlock consolidation 2005-09-10 10:06:21 -07:00
string.c
textsearch.c
ts_bm.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
ts_fsm.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
ts_kmp.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
vsprintf.c