]> www.infradead.org Git - users/dwmw2/linux.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>
Sun, 21 Aug 2022 13:15:35 +0000 (15:15 +0200)
commit0ca556256fb438bb754936e9ec210dc1b26b622f
tree28b313d03151978f986ce5514f5e64827de3e571
parent8dee22b4576dde8de322a4f7fa6107a3fa139acf
erofs: avoid consecutive detection for Highmem memory

[ Upstream commit 448b5a1548d87c246c3d0c3df8480d3c6eb6c11a ]

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: 7fc45dbc938a ("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