[Ocfs2-devel] [PATCH] ocfs2: Make ocfs2_extend_trans really extending.

Joel Becker Joel.Becker at oracle.com
Sun Apr 25 23:54:26 PDT 2010


On Mon, Apr 26, 2010 at 02:34:57PM +0800, Tao Ma wrote:
> >From c9dc26549b429eede9e47094a98b067bd5cd23b1 Mon Sep 17 00:00:00 2001
> From: Tao Ma <tao.ma at oracle.com>
> Date: Mon, 26 Apr 2010 13:49:11 +0800
> Subject: [PATCH] ocfs2: Make ocfs2_extend_trans really extending.
> 
> In ocfs2, we use ocfs2_extend_trans to extend a journal's
> blocks. But it is designed that in case jbd2_journal_extend
> fails, it will only restart with the the new block number.
> This tends to be awkward since in most cases we want our
> original reserved blocks there and make our codes hard to
> mantain since the caller sometimes can't make sure all the
> original blocks will not be accessed and dirtied again.
> There are 15 callers of ocfs2_extend_trans in fs/ocfs2,
> and 12 of them have to add h_buffer_credits before they
> call ocfs2_extend_trans. So make it really behaves like
> extending.
> 
> Signed-off-by: Tao Ma <tao.ma at oracle.com>

	This is now in the 'merge-window' branch of ocfs2.git.

Joel

-- 

"Hey mister if you're gonna walk on water,
 Could you drop a line my way?"

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