Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11539286rwb; Fri, 25 Nov 2022 17:27:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf7iSBUgyV/d93jnWIk7iQh7RtuPN+Ak5iUObqGdVP1knge7CML0zIXdQMqpWJhuwrU2jMMN X-Received: by 2002:a62:1b0b:0:b0:56d:384:e13a with SMTP id b11-20020a621b0b000000b0056d0384e13amr21389410pfb.75.1669426051519; Fri, 25 Nov 2022 17:27:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669426051; cv=none; d=google.com; s=arc-20160816; b=nu41tlZdCEVSMMRSygykTDMmOBlzrg/LBluQq1+3Ch+tWAOXoGU89ROYSZWmbjBU1/ fL8fkYk2LbrNdWvduThVSQnjHwPO5DrJO54JqqSW5g7cOCny0bK0luZuQQlWVamWz/ER J6k81N28hV3J8pOPwigGUdt+PFYqEJihMlUGcE00nHY/2Dd3lKgXimYMBcW5wxUdeeiX XXRnxV8ARigr8/ClU2hGz68YZmFWUQzq5ASe+PZUmsESRXldWoxf8fAnsWsNlI+DqBjl P9nA3Xp/lBzZ+49JzdbpkJC3fZrJMIHg43a75hk0q1POUnEYFonvDwVVkmXGh1EuqoaY 3uww== 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=vOnFMcGtwY2gdm9iZdcr0AG6lQlssJAGyW/ygGlRbqY=; b=D0Lnk3NsxyElHzqw0u8Klk4YSNp6jMx9Qh7eozAtkv+lKvteN+bKiOQ0884qALhoL+ ZF4xjlUv/gp7fkgRhJpX5sIIUL4GAa6CFYvicxjF5w2DHNrqDMW/GM2j3/jFgaIwIzer z0d9C597+GdMHb60PoAy7uKU3PObXFYfIu5X1ui3SdhGzisPIg2lbOVHxjZRYuDLAE3L YzKlelVIYgpOgkpneaF0xWKuPcGG9nttOiEnbZKZ3a34a1F8rf4MrnLuuisWdx1n6W3F 6EBRqnbII1k7MwdppoE2Jp7gwZSj28g6PGXPIj83fKpIWfQ/SbHT3YB3ieL5HMIaHEJU qvvQ== 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 125-20020a630983000000b0045650af278bsi5862736pgj.817.2022.11.25.17.27.17; Fri, 25 Nov 2022 17:27:31 -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 S230082AbiKZA6C (ORCPT + 85 others); Fri, 25 Nov 2022 19:58:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230070AbiKZA6B (ORCPT ); Fri, 25 Nov 2022 19:58:01 -0500 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B386D5A6EB for ; Fri, 25 Nov 2022 16:57:59 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;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_---0VVgyB1f_1669424276; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VVgyB1f_1669424276) by smtp.aliyun-inc.com; Sat, 26 Nov 2022 08:57:57 +0800 From: Jingbo Xu To: xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 0/2] erofs: support large folio in fscache mode Date: Sat, 26 Nov 2022 08:57:54 +0800 Message-Id: <20221126005756.7662-1-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Patch 1 is the main part of supporting large folio in 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. It enables large folio for both fscache and the original device mode (in uncompressed data format). And thus I think the previous patch[2] exclusively for the device mode is not needed then. [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 folio in fscache mode erofs: enable large folio support for non-compressed format fs/erofs/fscache.c | 117 +++++++++++++++++++-------------------------- fs/erofs/inode.c | 1 + 2 files changed, 50 insertions(+), 68 deletions(-) -- 2.19.1.6.gb485710b