Home
last modified time | relevance | path

Searched hist:f240d3aaf5a1552ecb75445b47b1ca957d5151d2 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/fs/f2fs/
H A Dinode.cdiff f240d3aaf5a1552ecb75445b47b1ca957d5151d2 Tue May 30 20:40:55 CDT 2023 Chao Yu <chao@kernel.org> 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>
H A Df2fs.hdiff f240d3aaf5a1552ecb75445b47b1ca957d5151d2 Tue May 30 20:40:55 CDT 2023 Chao Yu <chao@kernel.org> 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>