]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: leave compressed inodes unsupported in fscache mode for now
authorJeffle Xu <jefflexu@linux.alibaba.com>
Thu, 26 May 2022 01:03:44 +0000 (09:03 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 29 May 2022 07:34:54 +0000 (15:34 +0800)
commit6a09354e0e91c416d5720c8cb0a3143a2358cfd8
tree9bd7c26e13108a7cbf5b882cf079dd6ae2dd527a
parentc5ec673b7c8c2e6f8d05bcf3960c49eb9264835d
erofs: leave compressed inodes unsupported in fscache mode for now

erofs over fscache doesn't support the compressed layout yet. It will
cause NULL crash if there are compressed inodes contained when working
in fscache mode.

So far in the erofs based container image distribution scenarios
(RAFS v6), the compressed RAFS v6 images are downloaded and then
decompressed on demand as an uncompressed erofs image. Then the erofs
image is mounted in fscache mode for containers to use. IOWs, currently
compressed data is decompressed on the userspace side instead and
uncompressed erofs images will be finally cached.

The fscache support for the compressed layout is still under
development and it will be used for runtime decompression feature.
Anyway, to avoid the potential crash, let's leave the compressed inodes
unsupported in fscache mode until we support it later.

Fixes: b83348bdb420 ("erofs: implement fscache-based data read for non-inline layout")
Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20220526010344.118493-1-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/inode.c