staging: erofs: localize UNALLOCATED_CACHED_PAGE placeholder
authorGao Xiang <gaoxiang25@huawei.com>
Fri, 7 Dec 2018 16:19:14 +0000 (00:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Dec 2018 16:10:48 +0000 (17:10 +0100)
commit672e54761025997b088d3b8e6c3bb20a71fb32f6
treef4524e6a5ce7b3eb32ab6d10174cee9b29510f60
parentc1448fa88025872502c3f7bf2cf7365deb25bb1b
staging: erofs: localize UNALLOCATED_CACHED_PAGE placeholder

In practice, in order to do cached decompression rather than reuse
them for in-place decompression and make full use of pages in
page_pool instead of allocating as much as possible, an unallocated
placeholder was introduce to mark all in compressed_pages[] and
they will be replaced at the time of submission.

Previously EROFS_UNALLOCATED_CACHED_PAGE was included in internal.h,
which is unnecessary since it's only internally used in decompression
subsystem, move it to unzip_vle.c and rename it to PAGE_UNALLOCATED.

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/internal.h
drivers/staging/erofs/unzip_vle.c