projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be1a1d7
)
btrfs: zoned: finish relocating block group
author
Naohiro Aota
<naohiro.aota@wdc.com>
Thu, 19 Aug 2021 12:19:24 +0000
(21:19 +0900)
committer
David Sterba
<dsterba@suse.com>
Tue, 26 Oct 2021 17:08:00 +0000
(19:08 +0200)
We will no longer write to a relocating block group. So, we can finish it
now.
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/relocation.c
b/fs/btrfs/relocation.c
index 914d403b4415dd647d16a48fec47c6fc817c141e..63d2b22cf4380d436843a5f492dfb2638db6243e 100644
(file)
--- a/
fs/btrfs/relocation.c
+++ b/
fs/btrfs/relocation.c
@@
-25,6
+25,7
@@
#include "backref.h"
#include "misc.h"
#include "subpage.h"
+#include "zoned.h"
/*
* Relocation overview
@@
-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;