2003-06-04 13:06:27

by Flavio Leitner

[permalink] [raw]
Subject: [PATCH] 2.4 - trivial cleanup in kmem_cache_reap()


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 [email protected] 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 <[email protected]>
[ E74B 0BD0 5E05 C385 239E 531C BC17 D670 7FF0 A9E0 ]