public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Manfred Spraul <manfred@colorfullife.com>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-arch@vger.kernel.org
Subject: Re: [PATCH] Allow arch override for kmem_bufctl_t
Date: Sat, 15 May 2004 14:24:01 +0200	[thread overview]
Message-ID: <40A60BE1.2060809@colorfullife.com> (raw)
In-Reply-To: <40A60984.1070202@colorfullife.com>

[-- Attachment #1: Type: text/plain, Size: 47 bytes --]

Attached is the patch - sorry.

--
    Manfred

[-- Attachment #2: patch-slab-mm-02-bufctl --]
[-- Type: text/plain, Size: 1352 bytes --]

// $Header$
// Kernel Version:
//  VERSION = 2
//  PATCHLEVEL = 6
//  SUBLEVEL = 6
//  EXTRAVERSION = -mm2
--- 2.6/mm/slab.c	2004-05-15 11:38:22.000000000 +0200
+++ build-2.6/mm/slab.c	2004-05-15 13:01:47.000000000 +0200
@@ -161,10 +161,9 @@
  * is less than 512 (PAGE_SIZE<<3), but greater than 256.
  */
 
-#define BUFCTL_END	0xffffFFFF
-#define BUFCTL_FREE	0xffffFFFE
-#define	SLAB_LIMIT	0xffffFFFD
-typedef unsigned int kmem_bufctl_t;
+#define BUFCTL_END	(((kmem_bufctl_t)(~0U))-0)
+#define BUFCTL_FREE	(((kmem_bufctl_t)(~0U))-1)
+#define	SLAB_LIMIT	(((kmem_bufctl_t)(~0U))-2)
 
 /* Max number of objs-per-slab for caches which use off-slab slabs.
  * Needed to avoid a possible looping condition in cache_grow().
--- 2.6/include/linux/types.h	2004-05-15 11:21:51.000000000 +0200
+++ build-2.6/include/linux/types.h	2004-05-15 12:57:29.000000000 +0200
@@ -140,6 +140,9 @@
 #define pgoff_t unsigned long
 #endif
 
+#ifndef HAVE_KMEM_BUFCTL_T
+typedef unsigned int kmem_bufctl_t;
+#endif
 #endif /* __KERNEL_STRICT_NAMES */
 
 /*
--- 2.6/include/asm-i386/types.h	2004-01-09 07:59:44.000000000 +0100
+++ build-2.6/include/asm-i386/types.h	2004-05-15 12:57:51.000000000 +0200
@@ -63,6 +63,9 @@
 #define HAVE_SECTOR_T
 #endif
 
+#define HAVE_KMEM_BUFCTL_T 1
+typedef unsigned short kmem_bufctl_t;
+
 #endif /* __ASSEMBLY__ */
 
 #endif /* __KERNEL__ */

  reply	other threads:[~2004-05-15 12:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-15 12:13 [PATCH] Allow arch override for kmem_bufctl_t Manfred Spraul
2004-05-15 12:24 ` Manfred Spraul [this message]
2004-05-17  9:09   ` Andi Kleen
2004-05-17  9:11 ` Geert Uytterhoeven
2004-05-17 11:28   ` Ralf Baechle
2004-05-17 11:39   ` Ivan Kokshaysky
2004-05-17 12:39     ` Andi Kleen
2004-05-17 18:22 ` David Mosberger
2004-05-17 21:16 ` David S. Miller
2004-05-17 21:25   ` Matthew Wilcox
2004-05-18  5:04     ` Manfred Spraul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40A60BE1.2060809@colorfullife.com \
    --to=manfred@colorfullife.com \
    --cc=akpm@digeo.com \
    --cc=linux-arch@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox