提交 7ae9bd18 编写于 作者: N Naohiro Aota 提交者: David Sterba

btrfs: zoned: finish relocating block group

We will no longer write to a relocating block group. So, we can finish it
now.
Signed-off-by: NNaohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 be1a1d7a
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "backref.h" #include "backref.h"
#include "misc.h" #include "misc.h"
#include "subpage.h" #include "subpage.h"
#include "zoned.h"
/* /*
* Relocation overview * Relocation overview
...@@ -4063,6 +4064,9 @@ int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start) ...@@ -4063,6 +4064,9 @@ int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start)
rc->block_group->start, rc->block_group->start,
rc->block_group->length); rc->block_group->length);
ret = btrfs_zone_finish(rc->block_group);
WARN_ON(ret && ret != -EAGAIN);
while (1) { while (1) {
int finishes_stage; int finishes_stage;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册