linux/drivers/staging/erofs
Gao Xiang 0734ffbf57 staging: erofs: fix a bug when appling cache strategy
As described in Kconfig, the last compressed pack should be cached
for further reading for either `EROFS_FS_ZIP_CACHE_UNIPOLAR' or
`EROFS_FS_ZIP_CACHE_BIPOLAR' by design.

However, there is a bug in z_erofs_do_read_page, it will
switch `initial' to `false' at the very beginning before it decides
to cache the last compressed pack.

caching strategy should work properly after appling this patch.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-18 16:34:35 +02:00
..
include staging: erofs: <linux/tagptr.h>: introduce tagged pointer 2018-07-27 17:24:08 +02:00
data.c staging: erofs: use explicit unsigned int type 2018-09-14 09:05:03 +02:00
dir.c staging: erofs: use explicit unsigned int type 2018-09-14 09:05:03 +02:00
erofs_fs.h staging: erofs: rearrange vle clustertype definitions 2018-08-27 19:46:13 +02:00
inode.c staging: erofs: use explicit unsigned int type 2018-09-14 09:05:03 +02:00
internal.h staging: erofs: code cleanup for erofs_kmalloc() 2018-09-18 13:21:26 +02:00
Kconfig Revert "staging: erofs: disable compiling temporarile" 2018-09-10 10:02:08 +02:00
lz4defs.h staging: erofs: introduce a customized LZ4 decompression 2018-07-27 17:24:09 +02:00
Makefile staging: erofs: add a generic z_erofs VLE decompressor 2018-07-27 17:24:09 +02:00
namei.c staging: erofs: use explicit unsigned int type 2018-09-14 09:05:03 +02:00
super.c Merge 4.19-rc4 into staging-next 2018-09-16 22:04:13 +02:00
TODO staging: erofs: add a TODO and update MAINTAINERS for staging 2018-07-27 17:24:10 +02:00
unzip_lz4.c staging: erofs: introduce a customized LZ4 decompression 2018-07-27 17:24:09 +02:00
unzip_pagevec.h staging: erofs: introduce pagevec for unzip subsystem 2018-07-27 17:24:08 +02:00
unzip_vle_lz4.c staging: erofs: fix 1 warning and 9 checks 2018-09-10 10:09:26 +02:00
unzip_vle.c staging: erofs: fix a bug when appling cache strategy 2018-09-18 16:34:35 +02:00
unzip_vle.h staging: erofs: fix a compile warning of Z_EROFS_VLE_VMAP_ONSTACK_PAGES 2018-07-28 09:21:30 +02:00
utils.c staging: erofs: use explicit unsigned int type 2018-09-14 09:05:03 +02:00
xattr.c staging: erofs: use explicit unsigned int type 2018-09-14 09:05:03 +02:00
xattr.h staging: erofs: introduce xattr & acl support 2018-07-27 17:24:08 +02:00