From 32dfefb4c8e3e0068e66ae219c0d643c1f9b7a69 Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Mon, 19 Sep 2022 09:34:28 -0700 Subject: [PATCH] ANDROID: f2fs: enable cleancache cleancache is enabled for only ext4 and btrfs. Since f2fs is one of the main fs in Android, this patch enables cleancache for f2fs. Bug: 236887352 Change-Id: Ib6e6e832234f72681058da848e9cff36c5a496f2 Signed-off-by: Minchan Kim --- fs/f2fs/super.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index a589a2405c54..76ce1d948047 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -28,6 +28,7 @@ #include #include #include +#include #include "f2fs.h" #include "node.h" @@ -4507,6 +4508,8 @@ reset_checkpoint: f2fs_update_time(sbi, CP_TIME); f2fs_update_time(sbi, REQ_TIME); clear_sbi_flag(sbi, SBI_CP_DISABLED_QUICK); + + cleancache_init_fs(sb); return 0; sync_free_meta: