erofs: adapt managed inode operations into folios
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 26 May 2023 20:14:57 +0000 (04:14 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 29 May 2023 15:06:03 +0000 (23:06 +0800)
commit7b4e372c36fcd33c74ba3cbd65fa534b9c558184
tree0ad30bf6fdbaaa1fa9e316bf83d34d6101146ba1
parent967c28b23f6c89bb8eef6a046ea88afe0d7c1029
erofs: adapt managed inode operations into folios

This patch gets rid of erofs_try_to_free_cached_page() and fold it
into .release_folio().

It also moves managed inode operations into zdata.c, which simplifies
the code a bit.  No logic changes.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Link: https://lore.kernel.org/r/20230526201459.128169-5-hsiangkao@linux.alibaba.com
fs/erofs/internal.h
fs/erofs/super.c
fs/erofs/zdata.c