Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261947AbVAaH2Z (ORCPT ); Mon, 31 Jan 2005 02:28:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261945AbVAaH0F (ORCPT ); Mon, 31 Jan 2005 02:26:05 -0500 Received: from waste.org ([216.27.176.166]:9452 "EHLO waste.org") by vger.kernel.org with ESMTP id S261936AbVAaHZy (ORCPT ); Mon, 31 Jan 2005 02:25:54 -0500 Date: Mon, 31 Jan 2005 01:25:51 -0600 From: Matt Mackall To: Andrew Morton X-PatchBomber: http://selenic.com/scripts/mailpatches Cc: linux-kernel@vger.kernel.org In-Reply-To: <2.687457650@selenic.com> Message-Id: <3.687457650@selenic.com> Subject: [PATCH 2/8] base-small: shrink major_names hash Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 851 Lines: 23 CONFIG_BASE_SMALL degrade genhd major names hash to linked list Signed-off-by: Matt Mackall 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 #include -#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/