Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2621538pxb; Sun, 17 Oct 2021 20:45:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPpPOZfol0v6OGYbZ8oI7s+2eC9249S9RsMoU73j7JbGtIixnvQNyfAQ31vU/++NsrqBKi X-Received: by 2002:a17:903:18c:b0:13f:255:9dca with SMTP id z12-20020a170903018c00b0013f02559dcamr25220098plg.37.1634528745490; Sun, 17 Oct 2021 20:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528745; cv=none; d=google.com; s=arc-20160816; b=a8TZng9W0iE5aLt6qlY7PBtezq744P4XqZMNU2J/OuTyZt1zrZFZU4vtQajkRr8K/j oiKk1DiX9bch7d8hUOLHB/DGA4/TQgkUUbAPDNOQqUFJu7hLq0WfsjJSzbX+pZ3L36AB TYOGPWk9EncIder6VOa6BD8Ryltk+1LG9rCem7zeuPspFoWe0gKKfYLM6BbbMudOHdIG nVd1hTuUVoCCDSTRLYh/v3OlhpZ4d5aLnsuDYTEkQEGQKUYnkxUgzte0grMs3soYg5pM NvfAUZWI6cB8QxlvrJRIWcOAP3mas9uE5PNhqGQQL2h4ZGHgFbGltaIsp+6oh8ejGPtJ IBrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=4IRV/a/jgi7bFhA7tTjTlHiS2pK4kwwrD2SWM8qakvU=; b=RkscLNNCUscKNcEFoOHfBNEhi1/3wn1PcFXE0oJl0F530IB/EJv8xNMsUMJBMqCahD 7ilusEhep/7omk+Mz26nNewzHzqyPeW7PtFBRiJtNf+h8jP5uVkHaYV1vz/rBnnYhL7R p5FmkWRjUYWlpAZALTKnfUsP9j2ZZL3qYFFtfU27b7OBl8i/rxg8OvDVR8N7OgSNQJdf 9kX3w8k3zxCIFsK7IqPywq/wiiEkW/pFIvxa+HC3ucHNe3fPnMQ8Ciix0XCAZCmNF9Qi SLqfVHYiGWhcGgotDofPbFD5hvjCVQOPSrWiKZzKv1nYUqy0Dp3x8yytZ7XVrQCuXsov 8qwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o7BAR9re; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si20088632pfk.48.2021.10.17.20.45.33; Sun, 17 Oct 2021 20:45:45 -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=@kernel.org header.s=k20201202 header.b=o7BAR9re; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242420AbhJQPei (ORCPT + 98 others); Sun, 17 Oct 2021 11:34:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:55578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242170AbhJQPeh (ORCPT ); Sun, 17 Oct 2021 11:34:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DF03D60E74; Sun, 17 Oct 2021 15:32:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634484748; bh=FQ2C52uWsYrTnBdz5DRM1rNifGCmmzFajq3YqCREayE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o7BAR9re4guIutpqLJG8nv77TlxxfKsQMgpx5AiWy0yRmGhx82DroeIfCwDMcDQXr VyIdfkOd5ZsfpriI5n+FIpGesu8zB0qppjLEKALyYaeOoa59FxPIz6PFWVjxVVTmVn VwgA01cULl4P5ApZjOHqsNxNd7WqLWDMtAkr8tKFvXXk0ANfZcLTsTFE4worJN6ML3 0NKZN7+lU2e3wwJd/agu57XDWhyDoQDTFNpZL39McEgS3/O9GIRECV9H6PGX5OkWMA 0HBQnE/xXR1XFnSaPLMZgEXm1+21XawKUGJWStaoUdjhnj3+HP/SxVZj+vYlXlitJj XTlZpb9wZuNFA== Date: Sun, 17 Oct 2021 23:32:05 +0800 From: Gao Xiang To: Chao Yu Cc: Gao Xiang , linux-erofs@lists.ozlabs.org, LKML , Yue Hu , Gao Xiang Subject: Re: [PATCH v3 2/3] erofs: introduce the secondary compression head Message-ID: <20211017153202.GA4054@hsiangkao-HP-ZHAN-66-Pro-G1> Mail-Followup-To: Chao Yu , Gao Xiang , linux-erofs@lists.ozlabs.org, LKML , Yue Hu , Gao Xiang References: <20211008200839.24541-3-xiang@kernel.org> <20211009181209.23041-1-xiang@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chao, On Sun, Oct 17, 2021 at 11:27:54PM +0800, Chao Yu wrote: > On 2021/10/10 2:12, Gao Xiang wrote: > > From: Gao Xiang > > > > Previously, for each HEAD lcluster, it can be either HEAD or PLAIN > > lcluster to indicate whether the whole pcluster is compressed or not. > > > > In this patch, a new HEAD2 head type is introduced to specify another > > compression algorithm other than the primary algorithm for each > > compressed file, which can be used for upcoming LZMA compression and > > LZ4 range dictionary compression for various data patterns. > > > > It has been stayed in the EROFS roadmap for years. Complete it now! > > > > Signed-off-by: Gao Xiang > > --- > > v2: https://lore.kernel.org/r/20211008200839.24541-3-xiang@kernel.org > > changes since v2: > > - simplify z_algorithmtype check suggested by Yue. > > > > fs/erofs/erofs_fs.h | 8 +++++--- > > fs/erofs/zmap.c | 38 ++++++++++++++++++++++++++------------ > > 2 files changed, 31 insertions(+), 15 deletions(-) > > > > diff --git a/fs/erofs/erofs_fs.h b/fs/erofs/erofs_fs.h > > index b0b23f41abc3..f579c8c78fff 100644 > > --- a/fs/erofs/erofs_fs.h > > +++ b/fs/erofs/erofs_fs.h > > @@ -21,11 +21,13 @@ > > #define EROFS_FEATURE_INCOMPAT_COMPR_CFGS 0x00000002 > > #define EROFS_FEATURE_INCOMPAT_BIG_PCLUSTER 0x00000002 > > #define EROFS_FEATURE_INCOMPAT_CHUNKED_FILE 0x00000004 > > +#define EROFS_FEATURE_INCOMPAT_COMPR_HEAD2 0x00000008 > > #define EROFS_ALL_FEATURE_INCOMPAT \ > > (EROFS_FEATURE_INCOMPAT_LZ4_0PADDING | \ > > EROFS_FEATURE_INCOMPAT_COMPR_CFGS | \ > > EROFS_FEATURE_INCOMPAT_BIG_PCLUSTER | \ > > - EROFS_FEATURE_INCOMPAT_CHUNKED_FILE) > > + EROFS_FEATURE_INCOMPAT_CHUNKED_FILE | \ > > + EROFS_FEATURE_INCOMPAT_COMPR_HEAD2) > > #define EROFS_SB_EXTSLOT_SIZE 16 > > @@ -314,9 +316,9 @@ struct z_erofs_map_header { > > */ > > enum { > > Z_EROFS_VLE_CLUSTER_TYPE_PLAIN = 0, > > - Z_EROFS_VLE_CLUSTER_TYPE_HEAD = 1, > > + Z_EROFS_VLE_CLUSTER_TYPE_HEAD1 = 1, > > Z_EROFS_VLE_CLUSTER_TYPE_NONHEAD = 2, > > - Z_EROFS_VLE_CLUSTER_TYPE_RESERVED = 3, > > + Z_EROFS_VLE_CLUSTER_TYPE_HEAD2 = 3, > > It needs to update comments above as well. okay, let me revise them now. Thanks, Gao XIang > > Thanks,