From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Dilger Subject: Re: [Ext2-devel] Re: Reviewing ext3 improvement patches (delalloc, mballoc, extents) Date: Fri, 4 Mar 2005 11:25:33 -0700 Message-ID: <20050304182533.GT27352@schnapps.adilger.int> References: <20050303083349.GA4896@in.ibm.com> <20050303094021.GY27352@schnapps.adilger.int> <20050304111331.GA4063@in.ibm.com> <20050304152946.5fb24686.alex@clusterfs.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uMXS1e6ZLomxFVb/" Cc: suparna@in.ibm.com, ext2-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org Received: from moraine.clusterfs.com ([66.96.26.190]:48827 "EHLO moraine.clusterfs.com") by vger.kernel.org with ESMTP id S262052AbVCDSZi (ORCPT ); Fri, 4 Mar 2005 13:25:38 -0500 To: Alex Tomas Content-Disposition: inline In-Reply-To: <20050304152946.5fb24686.alex@clusterfs.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org --uMXS1e6ZLomxFVb/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 04, 2005 15:29 +0300, Alex Tomas wrote: > On Fri, 4 Mar 2005 16:43:31 +0530 > Suparna Bhattacharya wrote: >=20 > > Alex, have you had a chance to prototype your idea of rooting extents > > in ea ? >=20 > I think all you need for this are: >=20 > 1) allocate EA in ext3_new_inode() > 2) write a replacement for ext3_init_tree_desc() > just few lines of code > 3) write .get_write_access and .mark_buffer_dirty methods > again few lines > 4) use replacement of ext3_init_tree_desc() in few places This should of course only be done for large inodes. Also, at some point it will consume all of the EA space and we need to use an external block. It might help in some middle cases (i.e. files with more extents than can fit in i_blocks (60 bytes), but less than fit into the large inode space (128 or maybe 384 bytes)) but it might also hurt other things if we need to allocate an EA block for another EA... Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://members.shaw.ca/adilger/ http://members.shaw.ca/golinux/ --uMXS1e6ZLomxFVb/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD4DBQFCKKgdpIg59Q01vtYRAseHAJ9dWQYVYg+9HOgM51qdja+trN+GGQCYngq/ Vqvv+Mg3UOOLSPqLo9ZWFg== =7xTB -----END PGP SIGNATURE----- --uMXS1e6ZLomxFVb/--