erofs: get rid of ->lru usage
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 22 Oct 2021 09:01:20 +0000 (17:01 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 25 Oct 2021 00:22:59 +0000 (08:22 +0800)
commiteaa9172ad988b3ef5c59a051c825706252d435e1
tree3a2ca3eeb88d11455d69c7583f4c76b3bf8ef0cb
parent622ceaddb7649ca328832f50ba1400af778d75fa
erofs: get rid of ->lru usage

Currently, ->lru is a way to arrange non-LRU pages and has some
in-kernel users. In order to minimize noticable issues of page
reclaim and cache thrashing under high memory presure, limited
temporary pages were all chained with ->lru and can be reused
during the request. However, it seems that ->lru could be removed
when folio is landing.

Let's use page->private to chain temporary pages for now instead
and transform EROFS formally after the topic of the folio / file
page design is finalized.

Link: https://lore.kernel.org/r/20211022090120.14675-1-hsiangkao@linux.alibaba.com
Cc: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Kent Overstreet <kent.overstreet@gmail.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/compress.h
fs/erofs/decompressor.c
fs/erofs/decompressor_lzma.c
fs/erofs/internal.h
fs/erofs/pcpubuf.c
fs/erofs/utils.c
fs/erofs/zdata.c