Commit 33eb1e5
btrfs: factor out stripe length calculation into a helper
Currently there are two locations which need to calculate the real
length of a stripe (which can be at the end of a chunk, and the chunk
size may not always be 64K aligned).
Factor them into a helper as we're going to have a third user soon.
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>1 parent b8e947e commit 33eb1e5
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1648 | 1648 | | |
1649 | 1649 | | |
1650 | 1650 | | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
1651 | 1659 | | |
1652 | 1660 | | |
1653 | 1661 | | |
1654 | 1662 | | |
1655 | 1663 | | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
| 1664 | + | |
1659 | 1665 | | |
1660 | 1666 | | |
1661 | 1667 | | |
| |||
1729 | 1735 | | |
1730 | 1736 | | |
1731 | 1737 | | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
| 1738 | + | |
1735 | 1739 | | |
1736 | 1740 | | |
1737 | 1741 | | |
| |||
0 commit comments