Commit 9c50fde
btrfs: zoned: refine extent allocator hint selection
[ Upstream commit 0d703963d297964451783e1a0688ebdf74cd6151 ]
The hint block group selection in the extent allocator is wrong in the
first place, as it can select the dedicated data relocation block group for
the normal data allocation.
Since we separated the normal data space_info and the data relocation
space_info, we can easily identify a block group is for data relocation or
not. Do not choose it for the normal data allocation.
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Naohiro Aota <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>1 parent a545d81 commit 9c50fde
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4297 | 4297 | | |
4298 | 4298 | | |
4299 | 4299 | | |
4300 | | - | |
| 4300 | + | |
| 4301 | + | |
4301 | 4302 | | |
4302 | 4303 | | |
4303 | 4304 | | |
| |||
4321 | 4322 | | |
4322 | 4323 | | |
4323 | 4324 | | |
| 4325 | + | |
4324 | 4326 | | |
4325 | 4327 | | |
4326 | 4328 | | |
| |||
4342 | 4344 | | |
4343 | 4345 | | |
4344 | 4346 | | |
4345 | | - | |
| 4347 | + | |
4346 | 4348 | | |
4347 | 4349 | | |
4348 | 4350 | | |
| |||
0 commit comments