From 27b7b396756ba540f5380ac8d3539a5a48fff76d Mon Sep 17 00:00:00 2001 From: Park Ju Hyung Date: Fri, 28 Feb 2020 18:19:47 +0900 Subject: [PATCH] fsck.f2fs: Disable kernel checks by default This really isn't helping and slows down the boot unnecessarily when a new kernel is installed. Signed-off-by: Park Ju Hyung Signed-off-by: Adithya Change-Id: I75870a9c100fab2600a64a550896876a386b2582 --- lib/libf2fs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libf2fs.c b/lib/libf2fs.c index 93b0604..fe34539 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -674,11 +674,9 @@ void f2fs_init_configuration(void) c.blks_per_seg = DEFAULT_BLOCKS_PER_SEGMENT; c.wanted_total_sectors = -1; c.wanted_sector_size = -1; + c.no_kernel_check = 1; #ifndef WITH_ANDROID c.preserve_limits = 1; - c.no_kernel_check = 1; -#else - c.no_kernel_check = 0; #endif for (i = 0; i < MAX_DEVICES; i++) {