diff options
author | 2019-09-03 10:06:26 +0800 | |
---|---|---|
committer | 2019-09-06 16:18:27 -0700 | |
commit | cfb9a34d147b8d002d4330ddb53a3eb79565d17c (patch) | |
tree | 0fbaf1e2ee15430ea126ab6bd8db3f13629f2267 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f2fs: fix error path of f2fs_convert_inline_page() (diff) | |
download | wireguard-linux-cfb9a34d147b8d002d4330ddb53a3eb79565d17c.tar.xz wireguard-linux-cfb9a34d147b8d002d4330ddb53a3eb79565d17c.zip |
f2fs: convert inline_data in prior to i_size_write
In below call path, we change i_size before inline conversion, however,
if we failed to convert inline inode, the inode may have wrong i_size
which is larger than max inline size, result inline inode corruption.
- f2fs_setattr
- truncate_setsize
- f2fs_convert_inline_inode
This patch reorders truncate_setsize() and f2fs_convert_inline_inode()
to guarantee inline_data has valid i_size.
Fixes: 0cab80ee0c9e ("f2fs: fix to convert inline inode in ->setattr")
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions