erofs: clean up cached I/O strategies
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 6 Dec 2022 06:03:52 +0000 (14:03 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 7 Dec 2022 02:56:20 +0000 (10:56 +0800)
commit1282dea37b09087b8aec59f0774572c16b52276a
tree0f568b7c00db8cb13d1ccba14e19734ef7e5c05d
parent2109901d49c5876cb424c55a520c750982d68593
erofs: clean up cached I/O strategies

After commit 4c7e42552b3a ("erofs: remove useless cache strategy of
DELAYEDALLOC"), only one cached I/O allocation strategy is supported:

  When cached I/O is preferred, page allocation is applied without
  direct reclaim.  If allocation fails, fall back to inplace I/O.

Let's get rid of z_erofs_cache_alloctype.  No logical changes.

Reviewed-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Yue Hu <huyue2@coolpad.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20221206060352.152830-1-xiang@kernel.org
fs/erofs/zdata.c