Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7502087rwb; Tue, 6 Dec 2022 06:36:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4YaBZfy6lBVoMxhPdMir7H+D/52xlofoIJ3FsPxkIlJavhexZtmuVfZCs/Nh8ZF3UK2iLV X-Received: by 2002:a17:906:b851:b0:7c1:1160:6e6b with SMTP id ga17-20020a170906b85100b007c111606e6bmr1592171ejb.698.1670337367293; Tue, 06 Dec 2022 06:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670337367; cv=none; d=google.com; s=arc-20160816; b=Iyxt3k3V7J6q0AZxQvJe+WbZN5l8viTa63rVnOOdTYiikT7XSbW9DnKGbKYfU/Thma M/q/5r6L1zx7dXqemg7w2A2OWQSRkKzIYOgLXruUsgThZQGTqclhjRpbs+tTNemsRMRt l8eQrRRP1MtH14d+k7awSnOQkYZx37XnLxBDwNGhMiP1mRe8YOIfDBBoFBHfHLMw6BLy QG8DBGiD13PcXcNsVrpz7FhjuUIJ0wIzBMQncSdD+BL6oWWGaw72gfrG2XIJjj2pH3dr eUUICtuHrskcmC4GTpMxBzOfA9/OlguNRrRE2pSTj5k0gsuTgvC8FTafzpLsMjpaz+la GeYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=nFBr7yw10sMsuoKdM9Xu6VSBb4cB1397r0uScmFfh7o=; b=RRPRRHuO6npne5QOIbVITI5oui+xx/CoJatWJTa+yNKhyKtHKx+6qpEfjL1C612f/N nLkkBRkTRxXsoBlHCHk9AohcGmi5xoP6hEqYSLhf65wjFjGTW8a4XkGcTwoM+ypQc/Kv VfDD97JtD+yL5P9TnworPDPsMK+5b/5SoBzCKWwjrcfL9WFqX7uflETIvPjEbJJDXv+b 61w0auK1oHeiE03mDc5Hxxqx7epfx+LFx93gBNL/7zTQ8qvN5SJWjnH9Crsy1PdFRX15 cB1n8fuQTX92AbmNAFsRdNPkNVep+ckf3KtUKa1YsjQznc2wiHJfe67HhopyQ9WXr88G r+dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CqoPJECp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a170906264a00b007c0db556798si5758816ejc.994.2022.12.06.06.35.47; Tue, 06 Dec 2022 06:36:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CqoPJECp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231756AbiLFOGP (ORCPT + 79 others); Tue, 6 Dec 2022 09:06:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231425AbiLFOGO (ORCPT ); Tue, 6 Dec 2022 09:06:14 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9124E2CC88 for ; Tue, 6 Dec 2022 06:06:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2832861773 for ; Tue, 6 Dec 2022 14:06:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A433BC433D6; Tue, 6 Dec 2022 14:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670335570; bh=6zLPU/OP1JWlfpeQndEkK8OuCR2c+jVhP4zLqlVSafw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CqoPJECp4snefzmLN8YHf4xDiaVTGO/ocKknsuyfYBHcFXuv57J7QJJOp56+4RCYo SpABtmiT+8iB596flQZ8vkNI4HWfGsYxIxLttX1Q6YHkqzVCaqSJ80ge3idl9enchL DaeyHWh263fs7Bd3brizd/CYY+JQu48SEbi7YzLW56CLJD6TCkITAwB1cucgZkMLlb T0md7P/PediemqfQt6CBlJYC2aEz9kVkxCEu5j2YSkybm3tpzUXRESwMDhkN8uw5eT v3IaFlbA6DjiSA67YyibRFiaKsLT5W/Qu5S9HVEXVVk5y3J+eUW1U4gkguITQTR2vV 7AOM+SgTjEkvw== Message-ID: <50922c87-3415-7986-c8ce-67d16754b442@kernel.org> Date: Tue, 6 Dec 2022 22:06:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v2] erofs: enable large folios for iomap mode To: Jingbo Xu , xiang@kernel.org, linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org References: <20221130060455.44532-1-jefflexu@linux.alibaba.com> Content-Language: en-US From: Chao Yu In-Reply-To: <20221130060455.44532-1-jefflexu@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/11/30 14:04, Jingbo Xu wrote: > Enable large folios for iomap mode. Then the readahead routine will > pass down large folios containing multiple pages. > > Let's enable this for non-compressed format for now, until the > compression part supports large folios later. > > When large folios supported, the iomap routine will allocate iomap_page > for each large folio and thus we need iomap_release_folio() and > iomap_invalidate_folio() to free iomap_page when these folios get > recalimed or invalidated. > > Signed-off-by: Jingbo Xu Reviewed-by: Chao Yu Thanks,