Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp691263ybh; Tue, 10 Mar 2020 06:33:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt13qnWIjbHJHZtU1uS7Z706ywRD7gVprIqsDMHZrCQirgLLF9vNzOoaWXf4ASLx+IRKluQ X-Received: by 2002:a9d:798d:: with SMTP id h13mr1174028otm.25.1583847195401; Tue, 10 Mar 2020 06:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583847195; cv=none; d=google.com; s=arc-20160816; b=XaDY1eFvg0RhpFpJESWO1CSB7OaMe9nwoQkuAPP7GUKTQaYQRSl8F5qFBqSpKcY6LS gNH5D/874nFyfxYbPuoOJNalhuNiAbO2zoo2M43Mx1bbKCVhHlF2NaPB7vZj2qQTCldt I1kCCACNiaDKFMybm6DfbwvTQvnvo/NNjv1l8v3IVDmvCOFUfR/9tOW5BBzOqY9co6dh s4YcHyfhW/oM2F8xWllQeVIejgXKfEPaFMno+GCX6AACdo1mgPJtu8vM/14xVsXfHnMS wZ4Q2yfdCS8NLS39JCgG3l9kxsWtVwdcUk97x65x0O0rufyvn3mrap7YN9ETSdd91nmx fmPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=oUDYH9xcBaWZEPkaBWGOKb5RKGBnMoe1ub4/FfRspLU=; b=AnBu7T99gFWGL7ftOR3++u16C09VzqP/3KmsL0JJf6E4bOEBs2BhI9zaH0NNnV2WmK NvSpXt0HDYGM1KGK99to6XBBphn1vYZU3gPuhTQEjeDzjduk+O55nYhXvpMa/9XEvFVM C5enfFQzioTTRtwWN8RXNtk0LEtgXg47T8YasNjWR8Gv/ozYLwXLaU7a7+Ld8RB6g59Y Wxe//QIwiQyK6NXIG4LBHCc2nSXt12OmDWvD3HSOkYQMXNXkydCYb6kv8yDU3ITAy7yQ QYjz+YGIQRuPtfmpBRuoR+gU4hQr13rwj9sbSsFssMvpcaI5yoCKP8kVqEfUfmkBdhN5 SnIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w22si5236395oih.103.2020.03.10.06.33.02; Tue, 10 Mar 2020 06:33:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729080AbgCJNav (ORCPT + 99 others); Tue, 10 Mar 2020 09:30:51 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:11617 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728589AbgCJMuZ (ORCPT ); Tue, 10 Mar 2020 08:50:25 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 81232A850F29D316DF7A; Tue, 10 Mar 2020 20:50:21 +0800 (CST) Received: from szvp000203569.huawei.com (10.120.216.130) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Tue, 10 Mar 2020 20:50:11 +0800 From: Chao Yu To: CC: , , , Chao Yu Subject: [PATCH 1/5] f2fs: change default compression algorithm Date: Tue, 10 Mar 2020 20:50:05 +0800 Message-ID: <20200310125009.12966-1-yuchao0@huawei.com> X-Mailer: git-send-email 2.18.0.rc1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.120.216.130] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index db3a63f7c769..ebffe7aa08ee 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1577,7 +1577,7 @@ static void default_options(struct f2fs_sb_info *sbi) F2FS_OPTION(sbi).test_dummy_encryption = false; F2FS_OPTION(sbi).s_resuid = make_kuid(&init_user_ns, F2FS_DEF_RESUID); F2FS_OPTION(sbi).s_resgid = make_kgid(&init_user_ns, F2FS_DEF_RESGID); - F2FS_OPTION(sbi).compress_algorithm = COMPRESS_LZO; + F2FS_OPTION(sbi).compress_algorithm = COMPRESS_LZ4; F2FS_OPTION(sbi).compress_log_size = MIN_COMPRESS_LOG_SIZE; F2FS_OPTION(sbi).compress_ext_cnt = 0; F2FS_OPTION(sbi).bggc_mode = BGGC_MODE_ON; -- 2.18.0.rc1