Skip to content

Commit 91faa53

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: change default compression algorithm
Use LZ4 as default compression algorithm, as compared to LZO, it shows almost the same compression ratio and much better decompression speed. Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 887347a commit 91faa53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ static void default_options(struct f2fs_sb_info *sbi)
15701570
F2FS_OPTION(sbi).test_dummy_encryption = false;
15711571
F2FS_OPTION(sbi).s_resuid = make_kuid(&init_user_ns, F2FS_DEF_RESUID);
15721572
F2FS_OPTION(sbi).s_resgid = make_kgid(&init_user_ns, F2FS_DEF_RESGID);
1573-
F2FS_OPTION(sbi).compress_algorithm = COMPRESS_LZO;
1573+
F2FS_OPTION(sbi).compress_algorithm = COMPRESS_LZ4;
15741574
F2FS_OPTION(sbi).compress_log_size = MIN_COMPRESS_LOG_SIZE;
15751575
F2FS_OPTION(sbi).compress_ext_cnt = 0;
15761576
F2FS_OPTION(sbi).bggc_mode = BGGC_MODE_ON;

0 commit comments

Comments
 (0)