Repository navigation
Commit 8c8f7c4
f2fs: fix to update last i_size if fallocate partially succeeds
[ Upstream commit 88f2cfc ]
In the case of expanding pinned file, map.m_lblk and map.m_len
will update in each round of section allocation, so in error
path, last i_size will be calculated with wrong m_lblk and m_len,
fix it.
Fixes: f5a53ed ("f2fs: support aligned pinned file")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 74d2b0e commit 8c8f7c4
1 file changed
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1616 | 1616 | | |
1617 | 1617 | | |
1618 | 1618 | | |
1619 | | - | |
| 1619 | + | |
1620 | 1620 | | |
1621 | 1621 | | |
| 1622 | + | |
1622 | 1623 | | |
1623 | 1624 | | |
1624 | 1625 | | |
| |||
1631 | 1632 | | |
1632 | 1633 | | |
1633 | 1634 | | |
| 1635 | + | |
1634 | 1636 | | |
1635 | 1637 | | |
1636 | 1638 | | |
1637 | | - | |
1638 | | - | |
| 1639 | + | |
| 1640 | + | |
1639 | 1641 | | |
1640 | 1642 | | |
1641 | 1643 | | |
| |||
1645 | 1647 | | |
1646 | 1648 | | |
1647 | 1649 | | |
1648 | | - | |
1649 | 1650 | | |
1650 | 1651 | | |
1651 | 1652 | | |
1652 | 1653 | | |
1653 | 1654 | | |
1654 | 1655 | | |
1655 | 1656 | | |
1656 | | - | |
1657 | | - | |
| 1657 | + | |
1658 | 1658 | | |
1659 | | - | |
1660 | 1659 | | |
1661 | 1660 | | |
1662 | 1661 | | |
| |||
1670 | 1669 | | |
1671 | 1670 | | |
1672 | 1671 | | |
1673 | | - | |
| 1672 | + | |
1674 | 1673 | | |
1675 | 1674 | | |
1676 | 1675 | | |
1677 | 1676 | | |
1678 | 1677 | | |
1679 | | - | |
| 1678 | + | |
1680 | 1679 | | |
1681 | 1680 | | |
| 1681 | + | |
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
1687 | | - | |
| 1687 | + | |
1688 | 1688 | | |
1689 | 1689 | | |
1690 | | - | |
| 1690 | + | |
1691 | 1691 | | |
1692 | 1692 | | |
1693 | 1693 | | |
| |||
0 commit comments