erofs: don't use erofs_map_blocks() any more
authorYue Hu <huyue2@yulong.com>
Thu, 25 Mar 2021 07:10:08 +0000 (15:10 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Mon, 29 Mar 2021 02:19:53 +0000 (10:19 +0800)
commit8137824eddd2e790c61c70c20d70a087faca95fa
tree24e1ada29ebc6deb9c818d367bf7adc47908acbc
parent0b964600d3aae56ff9d5bdd710a79f39a44c572c
erofs: don't use erofs_map_blocks() any more

Currently, erofs_map_blocks() will be called only from
erofs_{bmap, read_raw_page} which are all for uncompressed files.
So, the compression branch in erofs_map_blocks() is pointless. Let's
remove it and use erofs_map_blocks_flatmode() directly. Also update
related comments.

Link: https://lore.kernel.org/r/20210325071008.573-1-zbestahu@gmail.com
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Yue Hu <huyue2@yulong.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/data.c
fs/erofs/internal.h