staging: erofs: turn cache strategies into mount options
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 31 Jul 2019 15:57:49 +0000 (23:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Aug 2019 11:52:07 +0000 (13:52 +0200)
commit4279f3f9889f26bcdc4d35c0bf868a08e09470c7
treed26aa22ae1f7b088b5c670789d1417b65ecaf04a
parenteace994a116c9704738be3388f5777c740d9558d
staging: erofs: turn cache strategies into mount options

Kill all kconfig cache strategies and turn them into mount options
"cache_strategy={disable|readahead|readaround}".

As the first step, cached pages can still be usable after cache
is disabled by remounting, and these pages will be fallen out
over time, which can be refined in the later version if some
requirement is needed. Update related document as well.

Suggested-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Link: https://lore.kernel.org/r/20190731155752.210602-20-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/Documentation/filesystems/erofs.txt
drivers/staging/erofs/Kconfig
drivers/staging/erofs/internal.h
drivers/staging/erofs/super.c
drivers/staging/erofs/utils.c
drivers/staging/erofs/zdata.c
drivers/staging/erofs/zdata.h