From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D57C1C352A1 for ; Tue, 6 Dec 2022 14:06:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234693AbiLFOGQ (ORCPT ); Tue, 6 Dec 2022 09:06:16 -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 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,