OSDN Git Service

staging: erofs: add erofs_map_blocks_iter
authorGao Xiang <gaoxiang25@huawei.com>
Thu, 26 Jul 2018 12:21:58 +0000 (20:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jul 2018 15:24:08 +0000 (17:24 +0200)
commit02827e1796b33f1794966f5c3101f8da2dfa9c1d
treeaa1cac00b2a3c4c85eb0d06037db9b4e1835d18d
parent5eb20ec3e52496dfd0a2cf6a817993dd01ab2067
staging: erofs: add erofs_map_blocks_iter

This patch introduces an iterable L2P mapping
operation 'erofs_map_blocks_iter'.
Compared with 'erofs_map_blocks', it avoids
a number of redundant 'release and regrab'
processes if they request the same meta page.

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/Kconfig
drivers/staging/erofs/Makefile
drivers/staging/erofs/data.c
drivers/staging/erofs/internal.h
drivers/staging/erofs/unzip_vle.c [new file with mode: 0644]