Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp676387rwi; Thu, 27 Oct 2022 06:24:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4x0Vyi77LrUCQh8y/HC7CnNsDifcLs6pesQVg9hd5SOxbB/B4eiGg2WdwgMCwjeBVKYexB X-Received: by 2002:a63:ce54:0:b0:46a:e2a9:c7f6 with SMTP id r20-20020a63ce54000000b0046ae2a9c7f6mr41265921pgi.264.1666877069047; Thu, 27 Oct 2022 06:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666877069; cv=none; d=google.com; s=arc-20160816; b=m6m8KOrnLrt98TKcU/b0QfN8i4ej0U1GIYCqBVzaAChM9MzmSXnFQN5kLT4L8OIm3r NiDIBJMzmzZKvPdEEyueAWC49MZafbtmdCaMkHi5kDogi2nJM/N04FO8fyXeP8zObvqz 33d+ri5W+H4SMEuUuCoQKAJcJUWbtp3x+76+Y7MetiV+JeK5NOFQg/AKRCMHmGXhdfN4 PLipjN+P1KEPZWkCuTDLv1oyLDaQpcAu4Cg6HRyC3fT6oHtoLyfTplmBOkE7aFGsDK7D Y7yaBib0N1G1sqlLb72fPy65Be+ANgz+6OOb0R8c3utYExAcKkDmw6ZjtztWH+IOPhLE xzww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=08qQCOq6HXtPu07yJoUG1gykaILDIdfjGgF17Vne+y0=; b=g5lj4MM9wunhoTPF9FIyHLDIoyYqON5SLJWTV5AwQTh3wjz7YVMcHhHwQKQcGJi5JF ezc7YCU38uN5cb32/QumG+6WCSrckbcnWKr96UU777luCBXEtJKVDypmFlN2wCCA/tLy zbCEFHqT9MVxMRiz2B95MgrYRQK6d+s+0mdEf/ZS5/ne220xK+HlQMp/p+vggmwUXqSk Uzjkhy4ksYLCTxv1TWkmV/EJCYJTxEuzYVG8QSBSrDHAJK09VAHGwG6sYmVDaMS1UyG2 YNxTWIolhcPJmKR1GqRxWFN6c5ymCEDtRq8wwGi0vY4VVqlWsLAQQ+IWld6yMoOQdR+k RCWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZSXBTSW5; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t191-20020a6381c8000000b0045287c1978esi1590395pgd.402.2022.10.27.06.24.14; Thu, 27 Oct 2022 06:24:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@redhat.com header.s=mimecast20190719 header.b=ZSXBTSW5; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235778AbiJ0NMh (ORCPT + 99 others); Thu, 27 Oct 2022 09:12:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236050AbiJ0NME (ORCPT ); Thu, 27 Oct 2022 09:12:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F8437C1C3 for ; Thu, 27 Oct 2022 06:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666876291; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=08qQCOq6HXtPu07yJoUG1gykaILDIdfjGgF17Vne+y0=; b=ZSXBTSW5Ps2alxXwI9WYzPsg89Mg6UooXJIkTv2NLQCa+zJgawt5oiMLosZlg0+c1YKHMo AhiYgRS2FcjoajDw+EvrKRfSJvH24QYatpH5OdnKUVcOz9KmxGhLGEJe5bTYd6ku3+NpJ0 U9pYqJVXxnTeEmF1l30J47HBsRwjvck= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-649-YAG-GrF1PNKY9HcojBWvQA-1; Thu, 27 Oct 2022 09:11:26 -0400 X-MC-Unique: YAG-GrF1PNKY9HcojBWvQA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8D41E811E75; Thu, 27 Oct 2022 13:11:25 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.73]) by smtp.corp.redhat.com (Postfix) with ESMTP id 66BC01121333; Thu, 27 Oct 2022 13:11:24 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20221027083547.46933-8-jefflexu@linux.alibaba.com> References: <20221027083547.46933-8-jefflexu@linux.alibaba.com> <20221027083547.46933-1-jefflexu@linux.alibaba.com> To: Jingbo Xu Cc: dhowells@redhat.com, jlayton@kernel.org, linux-cachefs@redhat.com, linux-erofs@lists.ozlabs.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/9] fscache,netfs: define flags for prepare_read() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3306594.1666876283.1@warthog.procyon.org.uk> Date: Thu, 27 Oct 2022 14:11:23 +0100 Message-ID: <3306595.1666876283@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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-nfs@vger.kernel.org Jingbo Xu wrote: > + if (test_bit(FSCACHE_REQ_COPY_TO_CACHE, &flags)) > + __set_bit(NETFS_SREQ_COPY_TO_CACHE, &subreq->flags); Please don't do that in netfslib. Netfslib shouldn't know about fscache's inner workings. David