]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: avoid consecutive detection for Highmem memory
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 8 Jul 2022 10:10:01 +0000 (18:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:12 +0000 (14:23 +0200)
commitc70680ac38ce00892266ccd05e1999fbc0ab11da
tree546901a6aca5a651ca5fd77e10a25ba050fd6a81
parent193cfc3f392757a10c99804096065e74aa3956e4
erofs: avoid consecutive detection for Highmem memory

[ Upstream commit e2af1b9d469c77039f85f6079bd826e74bd46032 ]

Currently, vmap()s are avoided if physical addresses are
consecutive for decompressed buffers.

I observed that is very common for 4KiB pclusters since the
numbers of decompressed pages are almost 2 or 3.

However, such detection doesn't work for Highmem pages on
32-bit machines, let's fix it now.

Reported-by: Liu Jinbao <liujinbao1@xiaomi.com>
Fixes: d6c90688e3d0 ("staging: erofs: introduce generic decompression backend")
Link: https://lore.kernel.org/r/20220708101001.21242-1-hsiangkao@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/decompressor.c