commit | e457ef67093a8b232761a1af0dc6d5434d988fe7 | [log] [tgz] |
---|---|---|
author | Chao Yu <yuchao0@huawei.com> | Wed Mar 24 11:24:33 2021 +0800 |
committer | Jaegeuk Kim <jaegeuk@google.com> | Thu Mar 25 18:26:15 2021 -0700 |
tree | 536bccfe07aed14ce838b3fd51eb5b154601698b | |
parent | c4346bbb51102cafe60ce8da92d74b8e07e469f6 [diff] |
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>