[Ocfs2-devel] [PATCH 12/15] ocfs2: Some tiny bug fixes for discontiguous block allocation.

Joel Becker Joel.Becker at oracle.com
Thu Apr 1 10:44:49 PDT 2010


On Thu, Apr 01, 2010 at 12:32:29PM +0800, Tao Ma wrote:
> Joel Becker wrote:
> >On Thu, Apr 01, 2010 at 10:59:09AM +0800, Tao Ma wrote:
> >> 	le32_add_cpu(&fe->id1.bitmap1.i_total, le16_to_cpu(bg->bg_bits));
> >>-	le32_add_cpu(&fe->i_clusters, le16_to_cpu(cl->cl_cpg));
> >>+	le32_add_cpu(&fe->i_clusters,
> >>+		     le16_to_cpu(bg->bg_bits) / le16_to_cpu(cl->cl_bpc));
> >
> >	You don't need to change this.  Either we've allocated cpg or
> >we've failed out.
> Current we don't fail out in ocfs2_block_group_grow_discontig when
> we used up all the extent record in the list. So actually our bitmap
> size can be less than cpg. So you think we need to bail out?
> 
> I removed your
> if (needed > 0) {
> }

	Um, there's supposed to be the -ENOSPC in there.  Looks like
something I didn't complete.
	We will NOT support block groups that are smaller than cpg.

Joel

-- 

"But then she looks me in the eye
 And says, 'We're going to last forever,'
 And man you know I can't begin to doubt it.
 Cause it just feels so good and so free and so right,
 I know we ain't never going to change our minds about it, Hey!
 Here comes my girl."

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