erofs: simplify z_erofs_transform_plain()
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 27 Jun 2023 16:12:40 +0000 (00:12 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 11 Jul 2023 16:50:15 +0000 (00:50 +0800)
commitc5539762f32e97c5e16215fa1336e32095b8b0fd
treee2452978e199cf04932d815a1bb30fd57cce9803
parent123ec246ebe323d468c5ca996700ea4739d20ddf
erofs: simplify z_erofs_transform_plain()

Use memcpy_to_page() instead of open-coding them.

In addition, add a missing flush_dcache_page() even though almost all
modern architectures clear `PG_dcache_clean` flag for new file cache
pages so that it doesn't change anything in practice.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20230627161240.331-2-hsiangkao@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/decompressor.c