From owner-svn-src-all@FreeBSD.ORG Thu Jan 14 20:37:40 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6091B106566B; Thu, 14 Jan 2010 20:37:40 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 6A8B98FC14; Thu, 14 Jan 2010 20:37:39 +0000 (UTC) Received: by bwz5 with SMTP id 5so63737bwz.3 for ; Thu, 14 Jan 2010 12:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=nRCR/CR1i/7l0iwlDyLJCogZTQQ4XzxJ8gEvWGfJGpw=; b=qXOdKftPqVXhZ8cig7A/wAYW7BDdztEYCQPKXKKnP21+kAUhkhvK1hp3BWq8iDyZKx B8E3Y2H6IhcT+WcADBXiYWC+K/fx4v10cLIdjLLGyFN19IR7XRZ+ZW7P/GaAGxK4R4wf zw98JxN4TmZR4+BURUQwNtPd/caBaBlBfSuN4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=U6ouhO5iQ4CsdgAHLAX1BkRVQIYmS69zaBvFTFn+nowJRWalM4cSU25B6Vmbe1vw3A qeREhjgrZJqPmILXLpr/AVK4yf3rKaAkQ7xtws9/kjFtAG1uapfV5hKiwDrEYR/aAtFr qqQZomCAcHEE0AVYn0koYMjNQ3I7DoymuD6Co= MIME-Version: 1.0 Received: by 10.204.15.145 with SMTP id k17mr771595bka.70.1263501448967; Thu, 14 Jan 2010 12:37:28 -0800 (PST) In-Reply-To: <201001141430.o0EEUssv057931@svn.freebsd.org> References: <201001141430.o0EEUssv057931@svn.freebsd.org> Date: Thu, 14 Jan 2010 23:37:28 +0300 Message-ID: From: pluknet To: Ulf Lilleengen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r202283 - in head/sys: conf fs/ext2fs gnu/fs/ext2fs gnu/fs/reiserfs modules/ext2fs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2010 20:37:40 -0000 2010/1/14 Ulf Lilleengen : > Author: lulf > Date: Thu Jan 14 14:30:54 2010 > New Revision: 202283 > URL: http://svn.freebsd.org/changeset/base/202283 > Sorry for my late comment. Please, dedup those comments below (came from p4 165599). thanks! > =A0/* > =A0* Allocate a block in the file system. > - * > - * this takes the framework from ffs_alloc. To implement the > - * actual allocation, it calls ext2_new_block, the ported version > - * of the same Linux routine. > =A0* > - * we note that this is always called in connection with ext2_blkpref > + * A preference may be optionally specified. If a preference is given > + * the following hierarchy is used to allocate a block: > + * =A0 1) allocate the requested block. > + * =A0 2) allocate a rotationally optimal block in the same cylinder. > + * =A0 3) allocate a block in the same cylinder group. > + * =A0 4) quadradically rehash into other cylinder groups, until an > + * =A0 =A0 =A0 =A0available block is located. > + * If no block preference is given the following hierarchy is used > + * to allocate a block: > + * =A0 1) allocate a block in the cylinder group that contains the > + * =A0 =A0 =A0 =A0inode for the file. > + * =A0 2) quadradically rehash into other cylinder groups, until an > + * =A0 =A0 =A0 =A0available block is located. > =A0* > - * preallocation is done as Linux does it > + * A preference may be optionally specified. If a preference is given > + * the following hierarchy is used to allocate a block: > + * =A0 1) allocate the requested block. > + * =A0 2) allocate a rotationally optimal block in the same cylinder. > + * =A0 3) allocate a block in the same cylinder group. > + * =A0 4) quadradically rehash into other cylinder groups, until an > + * =A0 =A0 =A0 =A0available block is located. > + * If no block preference is given the following hierarchy is used > + * to allocate a block: > + * =A0 1) allocate a block in the cylinder group that contains the > + * =A0 =A0 =A0 =A0inode for the file. > + * =A0 2) quadradically rehash into other cylinder groups, until an > + * =A0 =A0 =A0 =A0available block is located. > =A0*/ --=20 wbr, pluknet