erofs: avoid memory allocation failure during rolling decompression
authorHuang Jianan <huangjianan@oppo.com>
Tue, 16 Mar 2021 03:15:14 +0000 (11:15 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Mon, 29 Mar 2021 02:18:00 +0000 (10:18 +0800)
commitb4892fa3e7fd69e78a82356de45b90758589cafc
tree0e53b1067d0d70eab2b6545cd7248fc67d1c6202
parenta5e13c6df0e41702d2b2c77c8ad41677ebb065b3
erofs: avoid memory allocation failure during rolling decompression

Currently, err would be treated as io error. Therefore, it'd be
better to ensure memory allocation during rolling decompression
to avoid such io error.

In the long term, we might consider adding another !Uptodate case
for such case.

Link: https://lore.kernel.org/r/20210316031515.90954-1-huangjianan@oppo.com
Reviewed-by: Gao Xiang <hsiangkao@redhat.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Signed-off-by: Guo Weichao <guoweichao@oppo.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/decompressor.c