Repository navigation
Commit 13e434c
ocfs2: Trim suballocations if they cross discontiguous regions
A discontiguous block group can find a range of free bits that straddle
more than one region of its space. Callers can't handle that, so we
trim the returned bits until they fit within one region.
Only cluster allocations ask for min_bits>1. Discontiguous block groups
are only for block allocations. So min_bits doesn't matter here.
Signed-off-by: Joel Becker <joel.becker@oracle.com>1 parent aa8f8e9 commit 13e434c
1 file changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
1582 | 1624 | | |
1583 | 1625 | | |
1584 | 1626 | | |
| |||
1608 | 1650 | | |
1609 | 1651 | | |
1610 | 1652 | | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1611 | 1656 | | |
1612 | 1657 | | |
1613 | 1658 | | |
| |||
1697 | 1742 | | |
1698 | 1743 | | |
1699 | 1744 | | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
1700 | 1748 | | |
1701 | 1749 | | |
1702 | 1750 | | |
| |||
0 commit comments