staging: erofs: clean up z_erofs_map_blocks_iter
authorGao Xiang <gaoxiang25@huawei.com>
Tue, 18 Sep 2018 14:25:34 +0000 (22:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2018 14:33:43 +0000 (16:33 +0200)
commita07eeddf5b6307c301c8571618d2ce091c31bc11
treeccf340e0b7b57676edb1d4e85eb3ffedaa156736
parent37ec35a6cc2b99eb7fd6b85b7d7b75dff46bc353
staging: erofs: clean up z_erofs_map_blocks_iter

This patch mainly introduces `vle_map_blocks_iter_ctx' to clean up
z_erofs_map_blocks_iter and vle_get_logical_extent_head.

It changes the return value of `vle_get_logical_extent_head' to int
for the later error handing. In addition, it also renames `pcn' to
`pblk' since only `pblk' exists in erofs compression ondisk format.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/unzip_vle.c