From owner-freebsd-fs@FreeBSD.ORG Fri May 18 15:02:49 2007 Return-Path: X-Original-To: fs@freebsd.org Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C7FDE16A409 for ; Fri, 18 May 2007 15:02:49 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id 8596413C448 for ; Fri, 18 May 2007 15:02:49 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1157657pyh for ; Fri, 18 May 2007 08:02:49 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=j+YdzjHsPRex3MYwCaDcaEmnj0v4EbP0duiGextUiKHqSan7FUXhHQOVONqJSbGph2ce8NnFsghXp6RJE7o3aKJJG5way7eWfWgXi7vu5V6S/nt7sXU4bnA8CEAXPztkakt13jn7h6KG5TkVzEoAeXno3cYAdEh+O2WGsXj2wvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Yj3I5sq4io943mRI81A3ELvtu+uOdP7Uj0AotITDfg8MJWTRYzqAdVBSFqch9pRirtEU5+0vOZiK+DqaZUfKNMmk9123Ficlfh8Ao7DM1+xEJyAW/bA4haptvjCPnrFJeRAgXwLtIMWIJgChGYqp1chMq0KvX79bUCignWl+fy8= Received: by 10.35.99.14 with SMTP id b14mr2910663pym.1179500568993; Fri, 18 May 2007 08:02:48 -0700 (PDT) Received: by 10.35.78.11 with HTTP; Fri, 18 May 2007 08:02:48 -0700 (PDT) Message-ID: Date: Fri, 18 May 2007 23:02:48 +0800 From: "Howard Su" To: "Eric Anderson" In-Reply-To: <464DA5B7.1000908@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <464C3DA7.3020003@freebsd.org> <464DA5B7.1000908@freebsd.org> Cc: fs@freebsd.org Subject: Re: size limit for TMPFS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 15:02:49 -0000 On 5/18/07, Eric Anderson wrote: > On 05/18/07 01:28, Howard Su wrote: > From a quick glance, you are storing your inode count in the mount > structure of the tmpfs. So, anytime you do anything with the fs, you > have to lock the mount struct anyway, so there's no additional mutex > when updating the block count vs inode count, right? Please correct me > if I'm wrong here, since I'm still learning much about locking/vfs/etc. You are right in one persipective. the memory consumed by inode can be counted in this way. However when we allocate the filename, dirent, you need acquire the mutex which is not needed currently. -- -Howard