Btrfs: Fix the defragmention code and the block relocation code for data=ordered
authorChris Mason <chris.mason@oracle.com>
Thu, 24 Jul 2008 15:57:52 +0000 (11:57 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:05 +0000 (11:04 -0400)
Before setting an extent to delalloc, the code needs to wait for
pending ordered extents.

Also, the relocation code needs to wait for ordered IO before scanning
the block group again.  This is because the extents are not removed
until the IO for the new extents is finished

Signed-off-by: Chris Mason <chris.mason@oracle.com>

No differences found