From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 21 19:42:07 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 622E81065693 for ; Mon, 21 Jun 2010 19:42:07 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 25A728FC12 for ; Mon, 21 Jun 2010 19:42:06 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id BD060900AD; Mon, 21 Jun 2010 19:25:10 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.4/8.14.4) with ESMTP id o5LJPALN092374; Mon, 21 Jun 2010 19:25:10 GMT (envelope-from phk@critter.freebsd.dk) To: John Baldwin From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 21 Jun 2010 11:09:11 -0400." <201006211109.11653.jhb@freebsd.org> Date: Mon, 21 Jun 2010 19:25:10 +0000 Message-ID: <92373.1277148310@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-hackers@freebsd.org, Jaakko Heinonen Subject: Re: [patch] extending alloc_unr(9) to allocate specific unit numbers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2010 19:42:07 -0000 In message <201006211109.11653.jhb@freebsd.org>, John Baldwin writes: >On Saturday 19 June 2010 11:48:22 am Jaakko Heinonen wrote: >> As an example here is md(4) converted to use >> alloc_unr() / alloc_unr_specific(): >> >> http://people.freebsd.org/~jh/patches/md-alloc_unr.diff > >This sounds useful to me. Perhaps ask phk@? My only worry is that if people start to use this indiscriminantly to store random collections of numbers, then it is far from the optimal data structure for it. Other than that: go for it. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.