summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2020-03-12 05:45:29 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2020-03-23 07:16:29 +0300
commit1a67cbe141cf991af252a88143d0fd975be2d9e7 (patch)
tree5255fa70bd81e14141d034f076c1ef0689483561 /tools/perf/scripts/python/export-to-postgresql.py
parent50b1203d8c9c057558341cf02c0df66ba99a7877 (diff)
downloadlinux-1a67cbe141cf991af252a88143d0fd975be2d9e7.tar.xz
f2fs: fix to account compressed blocks in f2fs_compressed_blocks()
por_fsstress reports inconsistent status in orphan inode, the root cause of this is in f2fs_write_raw_pages() we decrease i_compr_blocks incorrectly due to wrong calculation in f2fs_compressed_blocks(). So this patch exposes below two functions based on __f2fs_cluster_blocks: - f2fs_compressed_blocks: get count of compressed blocks in compressed cluster - f2fs_cluster_blocks: get count of valid blocks (including reserved blocks) in compressed cluster. Then use f2fs_compress_blocks() to get correct compressed blocks count in f2fs_write_raw_pages(). sanity_check_inode: inode (ino=ad80) hash inconsistent i_compr_blocks:2, i_blocks:1, run fsck to fix Signed-off-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