[PATCH] 2.4 - trivial cleanup in kmem_cache_reap()

From: Flavio Bruno Leitner (fbl@conectiva.com.br)
Date: Wed Jun 04 2003 - 08:13:20 EST


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 ]

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:23 EST