aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
authorGravatar Chao Yu <yuchao0@huawei.com> 2021-03-24 11:24:33 +0800
committerGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2021-03-25 18:20:51 -0700
commit88f2cfc5fa90326edb569b4a81bb38ed4dcd3108 (patch)
treed2bf62b09abd4f07b08a6e63465bbfaf0e53a9f7 /fs/f2fs/segment.h
parentf2fs: fix error path of f2fs_remount() (diff)
downloadlinux-88f2cfc5fa90326edb569b4a81bb38ed4dcd3108.tar.gz
linux-88f2cfc5fa90326edb569b4a81bb38ed4dcd3108.tar.bz2
linux-88f2cfc5fa90326edb569b4a81bb38ed4dcd3108.zip
f2fs: fix to update last i_size if fallocate partially succeeds
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: f5a53edcf01e ("f2fs: support aligned pinned file") Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.h')
0 files changed, 0 insertions, 0 deletions