Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14193598rwb; Sun, 27 Nov 2022 19:35:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf7kjnxUqKIbMwoXnh7QJ/VRBpQw9QWQKa7/4f2EK4FcKyBlCIYnmwqLlBmY1k99tj5TalWq X-Received: by 2002:a17:902:ead1:b0:186:c090:fc56 with SMTP id p17-20020a170902ead100b00186c090fc56mr31850205pld.99.1669606543451; Sun, 27 Nov 2022 19:35:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669606543; cv=none; d=google.com; s=arc-20160816; b=ZDAwbEq8UdJQ7UzKpTh1wM0e8/1FS8Do78iqkmbPGomIbjIFIq+4F1dE7uV5m2XN1w i6c/dSql6EcHjRd/6deLOzDaUJdYnnRj0sU4tr4f/tGKE+hxLLFjWs4vcnS4yjkUxGUB ywArcstMpeR3LrECiLEJ64la2hGL8E/K60V7lryDtRZXXsNq7xXMWPvWaxPVZqJsFF8v 6GTJbWZC1eD1RSFq3WOVH2CsMyLiJr8GJRsjt32sl5LFi4f/yxILUQxD0iNwDu+Gjc5S 1B64PW6ZJs58B08YiJaUP3dS1r4ZFe8DCXp1LP2zw7tt0yiBh+y5GGyBBI2DSf8uhMI/ Iw7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=0iW5DAUkEng6EQoXCr6LwCzuX4ongX4J0mk/YYbwQIE=; b=fSNEshEqPjt9kOifAT2M1vsnFgGTSnjK7OMqoxxxEvMFluRXx356IhbQ+vkOrzX7bo lsQTXi9Qt5lq1Ti6w6brH5Wt4N+c8HvLH0/RJUb2Hh4YcUpjcQBgRbCPyi1iZNp4rU3S BpBm4e+p7Mvwe3x1gfXyC1Saqq/gbLn6mn6Cmyi4L5vMT7CrJ7sMjxNyBxRW5CLYeV9k 151M+6DRWoN1bSM89PSSoMvidlZUfnZYhCpJ9A+m0nZtZHkE8VnjrznnhyXm5MSl0HXH GRSRW/lqV6zRW1J12D8NrnIqpfa0N6nWEnU9R1Ip/LSZNbzA+0cQeKgCiQigm1bKYfE/ mtNA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 37-20020a630f65000000b00477d099bfadsi10840740pgp.129.2022.11.27.19.35.33; Sun, 27 Nov 2022 19:35:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbiK1CuV (ORCPT + 84 others); Sun, 27 Nov 2022 21:50:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbiK1CuQ (ORCPT ); Sun, 27 Nov 2022 21:50:16 -0500 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CFF4C75 for ; Sun, 27 Nov 2022 18:50:14 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VVnFHaB_1669603811; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VVnFHaB_1669603811) by smtp.aliyun-inc.com; Mon, 28 Nov 2022 10:50:12 +0800 From: Jingbo Xu To: xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] erofs: support large folios for fscache mode Date: Mon, 28 Nov 2022 10:50:09 +0800 Message-Id: <20221128025011.36352-1-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 v2: - patch 2: keep the enabling for iomap and fscache mode in separate patches; don't enable the feature for the meta data routine for now (Gao Xiang) v1: https://lore.kernel.org/all/20221126005756.7662-1-jefflexu@linux.alibaba.com/ Patch 1 is the main part of supporting large folios for fscache mode. It relies on a pending patch[1] adding .prepare_ondemand_read() interface in Cachefiles. Patch 2 just turns the switch on and enables the feature for fscache mode. It relies on a previous patch[2] which enables this feature for iomap mode. [1] https://lore.kernel.org/all/20221124034212.81892-1-jefflexu@linux.alibaba.com/ [2] https://lore.kernel.org/all/20221110074023.8059-1-jefflexu@linux.alibaba.com/ Jingbo Xu (2): erofs: support large folios for fscache mode erofs: enable large folios for fscache mode fs/erofs/fscache.c | 116 +++++++++++++++++++-------------------------- fs/erofs/inode.c | 3 +- 2 files changed, 49 insertions(+), 70 deletions(-) -- 2.19.1.6.gb485710b