[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111022052726.GE4196@thunk.org>
Date: Sat, 22 Oct 2011 01:27:26 -0400
From: Ted Ts'o <tytso@....edu>
To: Dmitry Monakhov <dmonakhov@...nvz.org>
Cc: linux-ext4@...r.kernel.org, achender@...ux.vnet.ibm.com
Subject: Re: [PATCH 1/6] ext4: cleanup ext4_ext_grow_indepth code
On Fri, Oct 21, 2011 at 01:08:54AM +0400, Dmitry Monakhov wrote:
> Currently code make an impression what grow procedure is very complicated
> and some mythical paths, blocks are involved. But in fact grow in depth
> it relatively simple procedure:
> 1) Just create new meta block and copy roots content to it
> 2) Convert root from extent to index if old depth == 0
> 3) update root block pointer
>
Applied, thanks.
BTW:
> - Do not pass path parameter to new_meta_block() in order to
> provoke allocation from inode's group because top-level block
> should site closer to it's inode, but not to leaf data block.
This happens anyway, due to logic in mballoc; as a result the path
parameter in ext4_ext_new_meta_block() is really pointless, and should
be dropped.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists