[Ocfs2-devel] OCFS2 features RFC

Joel Becker Joel.Becker at oracle.com
Thu May 11 15:55:53 CDT 2006


On Thu, May 11, 2006 at 02:40:46PM -0600, Paul Taysom wrote:
> What make the online file system resize tricky is updating all the
> allocation chains.  The last block of each of the existing chains needs
> to be updated to point to the new blocks in the chains.

	Nope, not tricky at all.  As clean new allocation groups, we
just insert them at the front of the chains.  The new chain has a
pointer to the existing chains initialized by userspace.  The chain
allocator inode has its chain pointers moved to the new group as a
single write during the in-kernel update.  Only one block write to
update all chains in the inode.

> Would it be possible to get rid of chains and just compute the next
> block in the chain?

	You can't mathematically compute the next group for anything
other than the cluster allocator.  In addition, the chain-reorder logic
allows fewer reads to find a relatively empty chain, an optimization
we'd lose.

Joel

-- 

"One of the symptoms of an approaching nervous breakdown is the
 belief that one's work is terribly important."
         - Bertrand Russell 

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-devel mailing list