Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1939279pxf; Fri, 26 Mar 2021 20:55:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnDFkCxe7JYtXgz0hfmwNDAyFPeTuquVmLaLShRPcAKf6hoQhXOanwr4m9KDoG1L5H0vB4 X-Received: by 2002:a05:6402:34c4:: with SMTP id w4mr19011554edc.367.1616817352192; Fri, 26 Mar 2021 20:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616817352; cv=none; d=google.com; s=arc-20160816; b=RnYbLE8paUQTe4EBG31TNhrNVLWOEayAAP+WjHVdFxuzV1BnU6yfKkxG78Zsv5OtTb OJFMS3Mu7OfPrIwycM+b6Oc5WB707EBEMp86xqpomjNwhx08h5Ivy6MHum18wQ4ZSlXn nTSmExubLsPPUHzSLPG1u5dpIfT2ImuLAeLW70FgXJaCGsmLBLkYBCkaLsLkRkjI0DsT SWtdqnXHtFSkRvpGT3zqAxzYD8hb96lW0swn6HVPay5QvfHzJ+BbL0m/R9OuvnR7g4sh PNawopLZPW8B3d8RkoaEN4MZBamRpOt7Cv77OsqizOIeb7kzEvc89bJ5vs26V+6GKB9I CkEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=xpKRxQ1nym4KNjqeSxdKbTuSsk5hiF4ck9LaGFFFvYE=; b=07whfoWcAcW2qHNpTGrkFhvBE2fyI4L2Wo/+tLx+oxRTnRbqeGaHTI+emrnXGb/Pcr vzCgTbPQexhCfvIWw+zt672FKA2myGWLLErakotSTBas9+S63B3hdR/Bj1hvHr7IZwZn 7xACkoucbXedV8Jn+a0nbsCAoKvKd5XlddKTKDSOhTedCUfaocv2Ln7BFco+bm1HR0Vi PSTzwtsfwHmmFD82CWVdzn266Gh2Zm1b91TS10DZoNgY1xLIAobCEWHphyrFules/upm +OOMn10n5hQCIOtFRJ9yxoE45LyLOqiu6aOGbjrkglmwgL+eu9lCtSCCz6ZRhuJHFILB gRxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=Af0X2d6n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si8051058edh.218.2021.03.26.20.55.29; Fri, 26 Mar 2021 20:55:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=Af0X2d6n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231249AbhC0DuW (ORCPT + 99 others); Fri, 26 Mar 2021 23:50:22 -0400 Received: from sonic306-21.consmr.mail.gq1.yahoo.com ([98.137.68.84]:41326 "EHLO sonic306-21.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbhC0Dtw (ORCPT ); Fri, 26 Mar 2021 23:49:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1616816991; bh=xpKRxQ1nym4KNjqeSxdKbTuSsk5hiF4ck9LaGFFFvYE=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=Af0X2d6n8spHdRZTXy5s/s6sBYqy4bRsPrwxPKbHBq2wm93F02SI8lN2BPU+9trbE1wKuVsbLwvgwu5antneCu1q4pOer1lvcBCN7QR28g+h9Yx/gEKRJhphVNWlLvy9Dqnlk0DTt0soiTgZAx/THWGoJ7SUq3zM/imNhnhwCcvlwn0722iCOtOl3uhDQkJ4OX4kCd/D5O7ctCQSEzLloDLDlvsREVQnm4zeeKjcXEKwZso6QGanjQF1uLFcPSeEGp5cN8lmWmH9MLXAHxzp05OjasQdQxyw9FiFZRM0PPgEFMZUT1s4kadwpbitapNZWGIyrl+Pf/IDlTqCkGZhgg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1616816991; bh=AZyjOMs0JAv/04m6cOjSZJVcc8/temhTLDUFP5U8Tq3=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=gH3kfWdQ7ef+NA/8U3MxM3FUkV6L80mf8oQPifDcFydKSMA8OIRGLxKIaHUO/KuFVwkKqfzuGHG/euXXkK+YkrvvJ6kcRn65oFm2UheKS+JcVTJe0qU796AeyFeLafiXywpwzK9neBPKq1g/fPjqkRIdUC+9iedBu0btG2w2v8RmdlI3OX/BSpImBvmBOT5HezgXpd4b6hM6pLSh0XDIT5zzW1Kun5lGRUUYadBkJDAByt0W+k0vW8JYk/rqHaBpy0z7DY7cehKiiqa7A3lgiuq7QkJLVcv4bjUmM6GnO6si3ibWyVH6MBuVtaEoeRk3n5hapO8AE9oWFSrl2vPWcA== X-YMail-OSG: YzRLW2YVM1nkvdr8YXHatVxlnNFtnmZnNtNF_tBR4AmQ7yDGOgwDf2w7uNXqqU1 TBOsu3.jKol5P2U4S18n.5UM1nR1W8asIedeZAoAnBLLt283sOgMK1fxNE514YYdmaNs9N.l9PRB RnD186XYN5FQPhvxBWANSSva3CJMFSmOMJ520jONRXaexe7WnwPAThsai_QTk2J4I3KC37UqgkcI r229GNQ0C0435K7KrE9XP9J_anH1FA4CU0H_._3KWMC44LZxNYgqzT.K2uF_CKh2alKDpPbYxVrg sieLnmTrvc88IzmJ5lL2DLPPmmF5avvkXUSB6ZbWsAI42Kk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fZ_IegxJZX5DjgPFlsvxn.TrD.Ot4mQceSuY4Q0kHm0qeSmel16iPRm9M0My7y29SuNfVNk0RT yMJ8TsFNDhwzv4ljbUGM2l9iZWwmxYDXBCX_e6_7GXuntgCxMN0YlW7vvaHmv0zPszt7m7kd4gV6 5Hl91exXgv0WgoyKAayULenSVZ3P9p_bt._jgSyxCMkVJKKp1wNP30eGSqFQG.YoCLAhUNPuyguO kCxOjqrUD6qIieJ4LaK2WEQ-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Sat, 27 Mar 2021 03:49:51 +0000 Received: by kubenode529.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b79f63fb2a60f2e9a0e41858735ab882; Sat, 27 Mar 2021 03:49:47 +0000 (UTC) From: Gao Xiang To: linux-erofs@lists.ozlabs.org, Chao Yu , Chao Yu Cc: LKML , Gao Xiang Subject: [PATCH 0/4] erofs: introduce on-disk compression configurations Date: Sat, 27 Mar 2021 11:49:32 +0800 Message-Id: <20210327034936.12537-1-hsiangkao@aol.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit References: <20210327034936.12537-1-hsiangkao.ref@aol.com> Content-Length: 1753 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gao Xiang Hi folks, When we provides support for different algorithms or big pcluster, it'd be necessary to record some configuration in the per-fs basis. For example, when big pcluster feature for lz4 is enabled, we need to know the largest pclustersize in the whole fs instance to adjust per-CPU buffers in advance, which will be used to handle in-place decompression failure for inplace IO then. And we also need to record global arguments (e.g. dict_size) for the upcoming LZMA algorithm support. Therefore, this patchset introduces a new INCOMPAT feature called COMPR_CFGS, which provides an available algorithm bitmap in the sb and a variable array list to store corresponding arguments for each available algorithms. Since such a INCOMPAT sb feature will be introduced, it'd be better to reuse such bit for BIGPCLUSTER feature as well since BIGPCLUSTER feature depends on COMPR_CFGS and will be released together with COMPR_CFGS. If COMPR_CFGS is disabled, the field of available algorithm bitmap would become a lz4_max_distance (which is now reserved as 0), and max_distance can be safely ignored for old kernels since 64k lz4 dictionary is always enough even new images could reduce the sliding window. Thanks, Gao Xiang Gao Xiang (3): erofs: introduce erofs_sb_has_xxx() helpers erofs: introduce on-disk lz4 fs configurations erofs: add on-disk compression configurations Huang Jianan (1): erofs: support adjust lz4 history window size fs/erofs/decompressor.c | 35 ++++++++-- fs/erofs/erofs_fs.h | 23 +++++-- fs/erofs/internal.h | 33 +++++++++ fs/erofs/super.c | 149 +++++++++++++++++++++++++++++++++++++++- 4 files changed, 228 insertions(+), 12 deletions(-) -- 2.20.1