f2fs: fix to update last i_size if fallocate partially succeeds
stable inclusion from stable-5.10.38 commit 8c8f7c49930dd93f5eb0653baed6f165a2e7601c bugzilla: 51875 CVE: NA -------------------------------- [ Upstream commit 88f2cfc5 ] 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: f5a53edc ("f2fs: support aligned pinned file") Signed-off-by: NChao Yu <yuchao0@huawei.com> Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录