diff options
author | 2023-05-31 09:40:55 +0800 | |
---|---|---|
committer | 2023-06-26 06:07:09 -0700 | |
commit | f240d3aaf5a1552ecb75445b47b1ca957d5151d2 (patch) | |
tree | fc88af7e9635e1e2e70797b655ead557742ac167 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f2fs: compress: fix to check validity of i_compress_flag field (diff) | |
download | wireguard-linux-f240d3aaf5a1552ecb75445b47b1ca957d5151d2.tar.xz wireguard-linux-f240d3aaf5a1552ecb75445b47b1ca957d5151d2.zip |
f2fs: do more sanity check on inode
There are several issues in sanity_check_inode():
- The code looks not clean, it checks extra_attr related condition
dispersively.
- It missed to check i_extra_isize w/ lower boundary
- It missed to check feature dependency: prjquota, inode_chksum,
inode_crtime, compression features rely on extra_attr feature.
- It's not necessary to check i_extra_isize due to it will only
be assigned to non-zero value if f2fs_has_extra_attr() is true
in do_read_inode().
Fix them all in this patch.
Signed-off-by: Chao Yu <chao@kernel.org>
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