Skip to content

Commit

Permalink
fsck.f2fs: Disable kernel checks by default
Browse files Browse the repository at this point in the history
This really isn't helping and slows down the boot unnecessarily when
a new kernel is installed.

Signed-off-by: Park Ju Hyung <[email protected]>
Signed-off-by: Adithya <[email protected]>
Change-Id: I75870a9c100fab2600a64a550896876a386b2582
  • Loading branch information
arter97 authored and BladeRunner-A2C committed Nov 14, 2023
1 parent 7be00f6 commit 27b7b39
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/libf2fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 27b7b39

Please sign in to comment.