* [PATCH] 2.4 - trivial cleanup in kmem_cache_reap()
@ 2003-06-04 13:13 Flavio Bruno Leitner
0 siblings, 0 replies; only message in thread
From: Flavio Bruno Leitner @ 2003-06-04 13:13 UTC (permalink / raw)
To: lkml
The patch below is against v2.4.21-rc7, please apply.
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1193 -> 1.1194
# mm/slab.c 1.22 -> 1.23
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/06/03 fbl@netbank.com.br 1.1194
# [PATCH] Cleanup kmem_cache_reap()
#
# There is no need to keep the list_entry()
# out of DEBUG condition.
# --------------------------------------------
#
diff -Nru a/mm/slab.c b/mm/slab.c
--- a/mm/slab.c Wed Nov 27 16:04:37 2002
+++ b/mm/slab.c Tue Jun 3 22:47:41 2003
@@ -1784,8 +1784,9 @@
full_free = 0;
p = searchp->slabs_free.next;
while (p != &searchp->slabs_free) {
- slabp = list_entry(p, slab_t, list);
#if DEBUG
+ slabp = list_entry(p, slab_t, list);
+
if (slabp->inuse)
BUG();
#endif
--
Flávio Bruno Leitner <fbl@conectiva.com.br>
[ E74B 0BD0 5E05 C385 239E 531C BC17 D670 7FF0 A9E0 ]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-06-04 13:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-04 13:13 [PATCH] 2.4 - trivial cleanup in kmem_cache_reap() Flavio Bruno Leitner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox