From patchwork Sat Nov 26 00:57:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingbo Xu X-Patchwork-Id: 2253 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4384088wrr; Fri, 25 Nov 2022 16:58:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf7KOIqQFsbEUprvyCtZlTddZsWyPKliqFJtNnPPGhWOvZbjTdO2mYVEFB7mkEpvYiR4ad7T X-Received: by 2002:a17:903:2616:b0:189:57f1:b8ec with SMTP id jd22-20020a170903261600b0018957f1b8ecmr11330577plb.4.1669424317698; Fri, 25 Nov 2022 16:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669424317; cv=none; d=google.com; s=arc-20160816; b=AiyY4CdsXgrp0Dm6VA9arZAcvQhhEiUFgXKl8waHV3fDF9WFHyNmDjDqZGWzpDKpbZ dzy2our07yQTQNITALtQuFRWw+6NcBo+XWNbPehW8Rys2I2PK/2gZFRtHUBS1mfWF5G0 GNGMoL1/UncGtFI36ThpxP/ZZuTi73ERqv7Zpw8osRyOs1jgqNjcI6V5GrgyaXMWI4lG m5gMS1mnmsK2mb/gWoX32ZbAQ34J2dRNIq+InmL37vj2Uza4HPB0KzjreEXZQJRyO6Z4 x6+UFXKacpijPlNh+OVN0VxDgAUDGZ+93OyIxJrbLMHmPmU/0oR3JEwmmVYSNSxTP970 huOQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b196-20020a621bcd000000b00565eb80af7fsi5041277pfb.343.2022.11.25.16.58.24; Fri, 25 Nov 2022 16:58:37 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750518273445735414?= X-GMAIL-MSGID: =?utf-8?q?1750518273445735414?= 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(-)