[Btrfs-devel] I'm confused by set_extent_bit

Chris Mason chris.mason at oracle.com
Tue Sep 11 10:41:15 PDT 2007


On Mon, 10 Sep 2007 23:27:52 +0800
"Yan Zheng" <yanzheng at 21cn.com> wrote:

> Hi,  Chris
> 
> I'm confused by following code fragment in set_extent_bit. the last
> statement 'goto out' in the body of test looks very strange.I think if
> goto label 'out'  there,  bits for range [start, state->start]  aren't
> set.  Perhaps the order of this test and next one should exchange.

Just an update here, Yan is right about this being a bug.  The last
push has his suggestion of reordering the tests.

-chris



More information about the Btrfs-devel mailing list