erofs: add unsupported inode i_format check
authorGao Xiang <hsiangkao@redhat.com>
Mon, 29 Mar 2021 00:36:14 +0000 (08:36 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Mon, 29 Mar 2021 02:20:45 +0000 (10:20 +0800)
commit24a806d849c0b0c1d0cd6a6b93ba4ae4c0ec9f08
tree9cae419066736369e8d0ca46508166c323bb4016
parent8137824eddd2e790c61c70c20d70a087faca95fa
erofs: add unsupported inode i_format check

If any unknown i_format fields are set (may be of some new incompat
inode features), mark such inode as unsupported.

Just in case of any new incompat i_format fields added in the future.

Link: https://lore.kernel.org/r/20210329003614.6583-1-hsiangkao@aol.com
Fixes: 431339ba9042 ("staging: erofs: add inode operations")
Cc: <stable@vger.kernel.org> # 4.19+
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/erofs_fs.h
fs/erofs/inode.c