From: Andrew Morton Subject: Re: [PATCH 3/3] Fix problems on multi-TB filesystem and file Date: Thu, 12 Jan 2006 18:33:54 -0800 Message-ID: <20060112183354.03eaf2df.akpm@osdl.org> References: <000201c611df$92dca230$4168010a@bsd.tnes.nec.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: torvalds@osdl.org, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, trond.myklebust@fys.uio.no Return-path: Received: from smtp.osdl.org ([65.172.181.4]:27114 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S932682AbWAMCeR (ORCPT ); Thu, 12 Jan 2006 21:34:17 -0500 To: "Takashi Sato" In-Reply-To: <000201c611df$92dca230$4168010a@bsd.tnes.nec.co.jp> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org "Takashi Sato" wrote: > > his fix was proposed by Trond Myklebust. He says: > The type "sector_t" is heavily tied in to the block layer interface > as an offset/handle to a block, and is subject to a supposedly > block-specific configuration option: CONFIG_LBD. Despite this, it is > used in struct kstatfs to save a couple of bytes on the stack > whenever we call the filesystems' ->statfs(). > > So kstatfs's entries related to blocks are invalid on statfs64 for a > network filesystem which has more than 2^32-1 blocks when CONFIG_LBD > is disabled. > That makes sense, thanks.