Commit 13d6d86
committed
btrfs: on unknown chunk allocation policy fallback to regular
We have only two chunk allocation policies right now and the
switch/cases don't handle an unknown one properly. The error is in the
impossible category (the policy is stored only in memory), we don't have
to BUG(), falling back to regular policy should be safe.
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 3329d3d commit 13d6d86
2 files changed
+17
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1528 | 1528 | | |
1529 | 1529 | | |
1530 | 1530 | | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
1531 | 1534 | | |
1532 | 1535 | | |
1533 | 1536 | | |
| |||
1537 | 1540 | | |
1538 | 1541 | | |
1539 | 1542 | | |
1540 | | - | |
1541 | | - | |
1542 | 1543 | | |
1543 | 1544 | | |
1544 | 1545 | | |
| |||
1618 | 1619 | | |
1619 | 1620 | | |
1620 | 1621 | | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
1621 | 1625 | | |
1622 | 1626 | | |
1623 | 1627 | | |
| |||
1632 | 1636 | | |
1633 | 1637 | | |
1634 | 1638 | | |
1635 | | - | |
1636 | | - | |
1637 | 1639 | | |
1638 | 1640 | | |
1639 | 1641 | | |
| |||
5199 | 5201 | | |
5200 | 5202 | | |
5201 | 5203 | | |
| 5204 | + | |
| 5205 | + | |
| 5206 | + | |
5202 | 5207 | | |
5203 | 5208 | | |
5204 | 5209 | | |
5205 | 5210 | | |
5206 | 5211 | | |
5207 | 5212 | | |
5208 | | - | |
5209 | | - | |
5210 | 5213 | | |
5211 | 5214 | | |
5212 | 5215 | | |
| |||
5395 | 5398 | | |
5396 | 5399 | | |
5397 | 5400 | | |
| 5401 | + | |
| 5402 | + | |
| 5403 | + | |
5398 | 5404 | | |
5399 | 5405 | | |
5400 | 5406 | | |
5401 | 5407 | | |
5402 | | - | |
5403 | | - | |
5404 | 5408 | | |
5405 | 5409 | | |
5406 | 5410 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
849 | 854 | | |
850 | 855 | | |
851 | 856 | | |
| |||
0 commit comments