From: Andrew Morton Subject: Re: [PATCH, RFC] map multiple blocks at a time in mpage_readpage(s) Date: Thu, 20 Oct 2005 15:06:31 -0700 Message-ID: <20051020150631.1f860552.akpm@osdl.org> References: <20051004194246.GA18432@lst.de> <20051019115639.GA13589@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from smtp.osdl.org ([65.172.181.4]:61092 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1750894AbVJTWHM (ORCPT ); Thu, 20 Oct 2005 18:07:12 -0400 To: Christoph Hellwig In-Reply-To: <20051019115639.GA13589@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Christoph Hellwig wrote: > > On Tue, Oct 04, 2005 at 09:42:46PM +0200, Christoph Hellwig wrote: > > This patch changes mpage_readpage/mpage_readpages to use a get_blocks > > call that gets the disk mapping information for multiple blocks at the > > same time, similar to the way direct I/O code works. For extent based > > filesystems like jfs, xfs or reiser4 this allows to reduce the overhead > > of the allocator calls, which is especially nice when that codepath > > is rather heavyweight (as it is for example in xfs). For filesystems > > that don't have an allocator that make use of it nothing changes. > > > > I've tested this heavily on XFS with block size = page size and 512 byte > > blocks, and it passes the XFS QA regression test suite fine. I've done > > some basic fsx testing on all the other affected filesystems. > > I think the patch should go into -mm after no one had serious objections. It adds a bunch of complexity and overhead which will speed up a filesystem which few people use while slowing down the filesystems which most people use. If/when we have an ext3 implementation of get_blocks() and some benchmarks which show it's worthwhile then OK. Could we please see the xfs benchmark results? first_logical_block should have type sector_t. Did you consider aggregating those nine args to do_mpage_readpage() into a struct, passing the address of that?