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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html