lkml.org 
[lkml]   [2005]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2/8] base-small: shrink major_names hash
CONFIG_BASE_SMALL degrade genhd major names hash to linked list

Signed-off-by: Matt Mackall <mpm@selenic.com>

Index: tq/drivers/block/genhd.c
===================================================================
--- tq.orig/drivers/block/genhd.c 2005-01-26 13:06:16.000000000 -0800
+++ tq/drivers/block/genhd.c 2005-01-26 13:08:23.000000000 -0800
@@ -15,7 +15,8 @@
#include <linux/kmod.h>
#include <linux/kobj_map.h>

-#define MAX_PROBE_HASH 255 /* random */
+/* degrade to linked list for small systems */
+#define MAX_PROBE_HASH (CONFIG_BASE_SMALL ? 1 : 255)

static struct subsystem block_subsys;

-
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/
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.509 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site