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> (cherry picked from commit 32dfefb4c8e3e0068e66ae219c0d643c1f9b7a69)
This commit is contained in:
parent
2ea053d317
commit
c959a3fc91
1 changed files with 3 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
@ -4572,6 +4573,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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue