Skip to content

Commit

Permalink
btrfs: zoned: finish relocating block group
Browse files Browse the repository at this point in the history
We will no longer write to a relocating block group. So, we can finish it
now.

Signed-off-by: Naohiro Aota <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
naota authored and kdave committed Oct 26, 2021
1 parent be1a1d7 commit 7ae9bd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/btrfs/relocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "backref.h"
#include "misc.h"
#include "subpage.h"
#include "zoned.h"

/*
* Relocation overview
Expand Down Expand Up @@ -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->length);

ret = btrfs_zone_finish(rc->block_group);
WARN_ON(ret && ret != -EAGAIN);

while (1) {
int finishes_stage;

Expand Down

0 comments on commit 7ae9bd1

Please sign in to comment.