If the device support write hints, let's assign it in Android devices. Signed-off-by: Jaegeuk Kim <jaeg...@kernel.org> --- fsck/main.c | 4 ++++ mkfs/f2fs_format_main.c | 4 ++++ 2 files changed, 8 insertions(+)
diff --git a/fsck/main.c b/fsck/main.c index 423a9a63782c..cb51673aeda8 100644 --- a/fsck/main.c +++ b/fsck/main.c @@ -233,6 +233,10 @@ static void add_default_options(void) /* disable nat_bits feature by default */ c.disabled_feature |= F2FS_FEATURE_NAT_BITS; + + /* enable write hitn by default */ + c.need_whint = true; + c.whint = WRITE_LIFE_NOT_SET; } c.quota_fix = 1; } diff --git a/mkfs/f2fs_format_main.c b/mkfs/f2fs_format_main.c index 5b4569d9e3ab..3a8fde021373 100644 --- a/mkfs/f2fs_format_main.c +++ b/mkfs/f2fs_format_main.c @@ -156,6 +156,10 @@ static void add_default_options(void) c.feature |= F2FS_FEATURE_PRJQUOTA; c.feature |= F2FS_FEATURE_EXTRA_ATTR; c.feature |= F2FS_FEATURE_VERITY; + + /* enable write hitn by default */ + c.need_whint = true; + c.whint = WRITE_LIFE_NOT_SET; break; } #ifdef CONF_CASEFOLD -- 2.49.0.805.g082f7c87e0-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel