mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-06 09:25:22 +02:00
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:
parent
f9df46617d
commit
2916880780
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user