Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp88603pxb; Thu, 2 Sep 2021 20:12:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsiyhm4yMeBiCM2pcD6+t6gYNvjiNUP7TR5HZ8hlDnDuLoOw4OuYT91owx8f0hutH3YB2m X-Received: by 2002:a17:906:840d:: with SMTP id n13mr1641375ejx.53.1630638774895; Thu, 02 Sep 2021 20:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630638774; cv=none; d=google.com; s=arc-20160816; b=ZqLJkLR7pmrxytTICJiKbkCCJLmO+wiTISWnzfmL9+DeshYaTYM0O9bBe13V3vUtdx 3waJycfzT9GR3R43mhRmUuNN/iI/N3lh4x9ZEakb/kUgfyYrNZGHVnQK2x1jbs8bx5Gj oGgRr94J1y2qPOfxTOLTFvSvqLNCJl2PkhW1HBSz4piKezHDywTY1dwUFYDh9ku0WIOg HTk3bkjCdNCKSnmrXqPDPVMof4nk3lUxfm21pPAWhMviGoGNNlQdWfuwy2DAqD69+EcD IdDRVZQGuVCOv7Fty9BHFWrXc26LtYoVC76uv8B69SHdolQH1GlPPpuDkL/VHRKvmQQl 24aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+/e27hiXtzLWgXAvHXwnpVvxi5y4HE+fscdvRcrfqQk=; b=kSFojsAqAiSjVfH7Uscff5BIKcrjL9jFncxeSMg4SnwIT426YMVDZYdWeS1mthdZZV NQJQP+QmXsKm/dZBHgN6cdNl4RAYEla5xsC4EfGruDdW/C+DVzUF+STrC8yz4MqyI6Uk YHOiYZhBoPWBVli5G2aaDct8JY/m2gOQ42d91uMtuN0Ddo6Fp95JJjzPqqePli26hFbx 0PyuOnaBptT6IayCaTt/smPwYX+HspTu95Dg4UH5YGukzuCtTk3+N0FKkEqBtbueeMxN 45X8vIW76pJLHhyzKEWI6HUpPqEjP3NoJqHCZaS+SfoHAek5i4Zcd7tWBZASUyqQP9wa hWUQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si5337603edk.342.2021.09.02.20.12.31; Thu, 02 Sep 2021 20:12:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233734AbhICDHN (ORCPT + 99 others); Thu, 2 Sep 2021 23:07:13 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:46996 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230499AbhICDHK (ORCPT ); Thu, 2 Sep 2021 23:07:10 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R981e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Un3cJFF_1630638367; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0Un3cJFF_1630638367) by smtp.aliyun-inc.com(127.0.0.1); Fri, 03 Sep 2021 11:06:08 +0800 Date: Fri, 3 Sep 2021 11:06:06 +0800 From: Gao Xiang To: Yue Hu , Chao Yu Cc: xiang@kernel.org, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org, huyue2@yulong.com, zbestahu@163.com Subject: Re: [PATCH] erofs: remove the pagepool parameter from z_erofs_shifted_transform() Message-ID: References: <20210831103204.881-1-zbestahu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210831103204.881-1-zbestahu@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yue, On Tue, Aug 31, 2021 at 06:32:04PM +0800, Yue Hu wrote: > From: Yue Hu > > We don't use the pagepool for plain format, remove it. In my LZMA patchset, I'll rearrange such interface to make LZMA integration easier: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git/commit/?h=erofs/lzma&id=3fab9044a4fe9358e95e16780831640caf3de10b This cleanup patch does no harm to that one, yet I think it has little real impact (especially applying the patch above)... So I'd like to hear Chao's suggestion about this as well. I'm fine in either ways. (p.s. we are in 5.15 merge window, I will set up a new dev branch after -rc1 is out.) Thanks, Gao Xiang > > Signed-off-by: Yue Hu > --- > fs/erofs/decompressor.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/fs/erofs/decompressor.c b/fs/erofs/decompressor.c > index a5bc4b1..8f50a36 100644 > --- a/fs/erofs/decompressor.c > +++ b/fs/erofs/decompressor.c > @@ -360,8 +360,7 @@ static int z_erofs_decompress_generic(struct z_erofs_decompress_req *rq, > return ret; > } > > -static int z_erofs_shifted_transform(const struct z_erofs_decompress_req *rq, > - struct list_head *pagepool) > +static int z_erofs_shifted_transform(const struct z_erofs_decompress_req *rq) > { > const unsigned int nrpages_out = > PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT; > @@ -403,6 +402,6 @@ int z_erofs_decompress(struct z_erofs_decompress_req *rq, > struct list_head *pagepool) > { > if (rq->alg == Z_EROFS_COMPRESSION_SHIFTED) > - return z_erofs_shifted_transform(rq, pagepool); > + return z_erofs_shifted_transform(rq); > return z_erofs_decompress_generic(rq, pagepool); > } > -- > 1.9.1