Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp499596pxb; Thu, 17 Feb 2022 08:27:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+nQoUeip/INER3qZG2r8vbEG94w+a+qmwC44QJN0sZFziDdl2pVqJUVHbqCVzdwWOzUIL X-Received: by 2002:a17:902:cf0f:b0:14d:cd19:545f with SMTP id i15-20020a170902cf0f00b0014dcd19545fmr3505441plg.67.1645115258019; Thu, 17 Feb 2022 08:27:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645115258; cv=none; d=google.com; s=arc-20160816; b=QS494qC6bhVQlLHdSflOYdQUXZudABUtKCQi/VzQAo3FbMv0qAYHRc1b0GwlUJkxEw VcouJKJZxiFx2cvkpTyLAuu6l/XUtj1XIkK/7TCFvT754kf09oewSxNPuVZdOSHRIEro lGD7m5s7iyDp/Ktb5a8wZx/0t3zteJ5Tm2C9Rh5U79KqGl++auAsFUw1n2OeenYCktcx wj0+8/PRthrgtrZ2YMqSnwd5fII/iSOj6HjA0lRKIAeagCPkmrHHUJ6r6Yx4tMHBVb7x nzQ5PNupDA6kJDB4Nj62wHsnGexMuDreT89wgBuIabBOOgrMmcyZ4S56mst4x5CXBjmQ hWxg== 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=tLxgxWrgWsNAOkK+QiYAtm9jy6ffNKDzLH0AidOI1Lk=; b=NR/UXyiNY7BNuzNVHlVdgtDZLW9BPrcmS1O8ueGLxiljVhcSuH/WbOy5aq0FCH2EBL S4xO68IZEVDJj0dhKYJwJdcREuME5mX4p45k4qjok4h1ICkiLw8Q2WYsrbsvfVaRdwl3 s7B/yWkHhECH6ex/UjmDkAKjxrya2BxtwMFw0oBnEMfLaGwVYaj7Xt1qAxMpGNzkbknk erXm1sECInDH5GO/H8OT7w40UyDWvFbqJxzlUHqUPXQizCIL7vtCFxAg3TwlRrDSK4Kc TgHQUOw2fP6wnDoT7q7fB2b5yTeOUxtCEfBSMKvsItD23hpwdC1G0e8Y1DdWj/Hlp6lE J31Q== 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 u18si10528487pgm.512.2022.02.17.08.27.21; Thu, 17 Feb 2022 08:27: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 S240133AbiBQMCO (ORCPT + 99 others); Thu, 17 Feb 2022 07:02:14 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbiBQMCN (ORCPT ); Thu, 17 Feb 2022 07:02:13 -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 D29686433; Thu, 17 Feb 2022 04:01:58 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R371e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0V4kJNJC_1645099314; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0V4kJNJC_1645099314) by smtp.aliyun-inc.com(127.0.0.1); Thu, 17 Feb 2022 20:01:55 +0800 From: Jeffle Xu To: dhowells@redhat.com, linux-cachefs@redhat.com Cc: xiang@kernel.org, torvalds@linux-foundation.org, gregkh@linuxfoundation.org, willy@infradead.org, linux-fsdevel@vger.kernel.org, joseph.qi@linux.alibaba.com, bo.liu@linux.alibaba.com, tao.peng@linux.alibaba.com, gerry@linux.alibaba.com, eguan@linux.alibaba.com, linux-kernel@vger.kernel.org Subject: [RESEND PATCH v3 0/4] fscache,erofs: fscache-based demand-read semantics (fscache part) Date: Thu, 17 Feb 2022 20:01:50 +0800 Message-Id: <20220217120154.16658-1-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.27.0 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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 Hi David, This patchset is from [1], which is all fscache part related, in prep for the newly introduced on-demand read semantics. The previous patch 5 [2] from [1] is still under modification according to the comments from Greg. Thus it is not included in this patchset yet, and will be sent out later. Whilst these four patches in this patchset are basically trivial cleanup codes. I do appreciate if you coud give some hint on this work. Thanks. [1] https://lore.kernel.org/all/20220215111335.123528-1-jefflexu@linux.alibaba.com/T/ [2] https://lore.kernel.org/all/20220215111335.123528-1-jefflexu@linux.alibaba.com/T/#ma8898ba06bf66d815925a32d1d6689d71346e609 Jeffle Xu (4): fscache: export fscache_end_operation() fscache: add a method to support on-demand read semantics cachefiles: extract generic function for daemon methods cachefiles: detect backing file size in on-demand read mode Documentation/filesystems/netfs_library.rst | 17 +++++ fs/cachefiles/Kconfig | 13 ++++ fs/cachefiles/daemon.c | 70 +++++++++++++-------- fs/cachefiles/internal.h | 1 + fs/cachefiles/namei.c | 60 +++++++++++++++++- fs/fscache/internal.h | 11 ---- fs/nfs/fscache.c | 8 --- include/linux/fscache.h | 39 ++++++++++++ include/linux/netfs.h | 4 ++ 9 files changed, 178 insertions(+), 45 deletions(-) -- 2.27.0