Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10483443rwb; Fri, 25 Nov 2022 05:10:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4lphrCMTGhnxs1mgLvhM4bZHJAb3g0EBbhNgGZSrhfvBsPPar752XcBwIm61eNAVMvna33 X-Received: by 2002:ac2:4c4a:0:b0:4aa:1e21:8f1f with SMTP id o10-20020ac24c4a000000b004aa1e218f1fmr7004145lfk.651.1669381841410; Fri, 25 Nov 2022 05:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669381841; cv=none; d=google.com; s=arc-20160816; b=OlB41+xDgupl03TMDpDRZbnreWELqjnJ49ak4I7YoIySL3j8N2pgORGkCUQ8Gt+All UyJvjG3BxBTNTcGYfZBiCOvxlXvLrhbq+M2m7j7WlOykXNw1qFhShTUnHrfXbol5U5Bq EMEchW2mFPXcGxQjCjA1zQrhCb+Pwi8XCTH6T5/7J7a87pD6tJMjq4d2loBDgz/Xb5u4 pSEfD6VM+88o8WlwGmOw2z7aRRseAI1SPxZ9hD4D9Vhgl6s8y8cSiEoDkwFEdnmP9SEU GmgBV1U8tt2oEGDDHykYI0KHHqRjhCZt1jcdzEwZ6R7QnxSVtP79uf0fiTNlvmcpDHH1 o8Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=tcVI2OS8NTzO9krD3NDZOlfxbhFOW+/gijB2QWeoS4c=; b=zI3bY28yUXcQOe8nEMIcsiQ5mCTlNLZLNMfz6iz+0wp7Ggs5l2CUTC4QCpQgTDfQi5 RoInFWsrUfLDzuztYm391kkL+MCCjizyEtmGwxjIhVOamp2coNBWxh2WfA2WSjdRs5Mx XJ/BELJN1dZO8XOLoh30o3P60BXDWzlUVis/buTv9WVVttfV0FIhGQQ7HaywUpHHvzg0 UAUsB1VJ3WKBJaiRtpZREzyO2oMimI6SxSJEXkeHNyWT/X0w9UPnaJIBCjo4aCwco4fK AGQHdqyyGoBT1EVTfcxghrYyc9yqsWmfNbfv/HgBi1WEfwWPec5+uU+KC3aZC9DtYvx3 ZF3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rN3HdXqT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg42-20020a170907972a00b007879bb73291si2890566ejc.807.2022.11.25.05.10.20; Fri, 25 Nov 2022 05:10:41 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rN3HdXqT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbiKYNB5 (ORCPT + 86 others); Fri, 25 Nov 2022 08:01:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbiKYNBn (ORCPT ); Fri, 25 Nov 2022 08:01:43 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F19D44EC12; Fri, 25 Nov 2022 05:01:30 -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 DB217623C0; Fri, 25 Nov 2022 13:01:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E731EC433C1; Fri, 25 Nov 2022 13:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669381287; bh=Bd6+TW+SUllGke4xXPsi3E6NWwGNc4MDvTSGFvrCkNU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rN3HdXqTCE4bVjC5CMTwEYV/a3IqLkxDV8dp6hFvDxLFX7AnpNe8ReTonzysdsYOH Z8uxb6ZC+Pzpf/C76pu/5Sv0zibmR6Hu1RB9G0Og5MecEpDXIBvcTp8wXTQLuPA0H2 irjJcfK9oQK/83jsOKllASa9HpcPSDP460eKPrJoenS1Uy3yGBNvfMWjnfcj9Ny2hA V7c+OOkTU1rj36gqP+plmOFMGnYcfXVgyIQiyCCIVua2ZkyDO5vLRb1DsXxff+Jt3u JCb0In9/OEMc6LiCC6iQDPCFRsWf3y3xE5h2OmSigcgPq+yrmVX0j6mHIhMkBGGY2R ht3jRsPiafuTg== Date: Fri, 25 Nov 2022 21:01:21 +0800 From: Gao Xiang To: David Howells Cc: Jingbo Xu , jlayton@kernel.org, xiang@kernel.org, chao@kernel.org, linux-cachefs@redhat.com, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/2] fscache,cachefiles: add prepare_ondemand_read() callback Message-ID: Mail-Followup-To: David Howells , Jingbo Xu , jlayton@kernel.org, xiang@kernel.org, chao@kernel.org, linux-cachefs@redhat.com, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221124034212.81892-2-jefflexu@linux.alibaba.com> <20221124034212.81892-1-jefflexu@linux.alibaba.com> <2386961.1669377478@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2386961.1669377478@warthog.procyon.org.uk> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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, On Fri, Nov 25, 2022 at 11:57:58AM +0000, David Howells wrote: > Jingbo Xu wrote: > > > Add prepare_ondemand_read() callback dedicated for the on-demand read > > scenario, so that callers from this scenario can be decoupled from > > netfs_io_subrequest. > > > > The original cachefiles_prepare_read() is now refactored to a generic > > routine accepting a parameter list instead of netfs_io_subrequest. > > There's no logic change, except that the debug id of subrequest and > > request is removed from trace_cachefiles_prep_read(). > > > > Reviewed-by: Jeff Layton > > Signed-off-by: Jingbo Xu > > Acked-by: David Howells Thanks! I will apply them for -next, and soon Jingbo will submit large folios support for erofs iomap/fscache modes. Thank all again, Gao Xiang