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 <minchan@google.com>
This commit is contained in:
Minchan Kim 2022-09-19 09:34:28 -07:00 committed by Treehugger Robot
parent f9df46617d
commit 2916880780

View File

@ -28,6 +28,7 @@
#include <linux/part_stat.h>
#include <linux/zstd.h>
#include <linux/lz4.h>
#include <linux/cleancache.h>
#include "f2fs.h"
#include "node.h"
@ -4760,6 +4761,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: