Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1885826rdb; Mon, 8 Jan 2024 13:41:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAOzVkoy+9pOqO+qd4bQhOYGQqQBinviDk5pp4pAfMB4Ux0k1xBWjKlBRQyy/Ix1rqA14l X-Received: by 2002:a05:600c:5249:b0:40e:3bf0:6723 with SMTP id fc9-20020a05600c524900b0040e3bf06723mr2253372wmb.124.1704750110960; Mon, 08 Jan 2024 13:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704750110; cv=none; d=google.com; s=arc-20160816; b=ReYNJbIdSfnL2TyrdMrF1XJDuLJPXmjGk1rnwyGj9SdhHt0LBD3j4UtSERzSocFa90 OEKyL4CNWQPMQlyvsPKoqvKaCiYbLnU7CE9u2La5O0dkSEYdeMphlOtWyCVshzuZl+jI n3NfgTAF6DqB+Rj2PibEx/AKIGMCCPAzuuHn9oaqPoZJvnktxIqzQnQUgp3o08VZmav7 L21KEhm1Vf9Xti4qIUxyhrYwkevTD3f8jkIdYaAK4LMspS0ESL4o53lsbAtx7rvmJycA b4Nz3ZpFgyJjLYGnrqgjAXcwx7AQck6hjQ5tQBG9Il3+D8mx5nVWgTPp2gwvRYVyVoId TTbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-transfer-encoding:content-id:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :references:in-reply-to:from:organization:dkim-signature; bh=PouS+fcfRBFYHLc59Q6jvOZOpQHzKSFm7NNqEvCIUk8=; fh=t0h5rXJgHaPw+IxS2U3hbCvzGPWejKCfaHCY83fftFo=; b=eQNcb9vk3rNMzdcn0jGrmXNLuQ7LDXWJWrrx71ow2bXCJIpwSRmm06QRHj7AGJsfOp RNacgM9SKUailxbYLbQ0gS7aiXcmCbiOXz1pt9qmgznQHJoMhYWXG/KJg+LlYvPUhZH+ Be5rFjVwpGi4K8xo0KV3A8BWs56sBTqLdubNRlnv5k5jDpYJlMOJ4NesXCU8dvWBcY0E u0ivJNbZ5c8cX0F+IgYkGI0UsxcdfK2F4Svof4AlOR8HUu+ISmVgUgZan0QmYku7r8J2 u2cd8wqzoObfDNGNw+Wi0rknQgPZrKx6B3Z4/pKAxS68cip8vP/DZLaNriZH9OPP55jz Z5jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fpKn6COD; spf=pass (google.com: domain of linux-kernel+bounces-20133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cf15-20020a170906b2cf00b00a2af02c94f4si262428ejb.259.2024.01.08.13.41.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 13:41:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fpKn6COD; spf=pass (google.com: domain of linux-kernel+bounces-20133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B14A91F23A63 for ; Mon, 8 Jan 2024 21:41:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66EAF5645B; Mon, 8 Jan 2024 21:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="fpKn6COD" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 138F55644F for ; Mon, 8 Jan 2024 21:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704750098; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PouS+fcfRBFYHLc59Q6jvOZOpQHzKSFm7NNqEvCIUk8=; b=fpKn6CODj83irOHMxu8+seNQQlK3LCOcZTwTetwljPVf0E9lbVn0GuM0r3FIRgQ71ZsOjU yc7v73gAK9Bu7uk77aAR40F9xYbykida4Y8dkReZ816xtSu6/VfON4jl/WiA8ecRQ5qQy8 Vhc5BFhZG1h1JbOiat+rZmbhHWIY864= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-18-xSjPy8pPM0Sj570e6fr0mA-1; Mon, 08 Jan 2024 16:41:37 -0500 X-MC-Unique: xSjPy8pPM0Sj570e6fr0mA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3B96B3C02B64; Mon, 8 Jan 2024 21:41:37 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8342B492BC7; Mon, 8 Jan 2024 21:41:36 +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: References: To: Lukas Bulwahn Cc: dhowells@redhat.com, linux-cachefs@redhat.com, linux-fsdevel , Linux Kernel Mailing List Subject: Re: Reference to non-existing CONFIG_NETFS_FSCACHE Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1542012.1704750095.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Mon, 08 Jan 2024 21:41:35 +0000 Message-ID: <1542013.1704750095@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 Lukas Bulwahn wrote: > In commit 62c3b7481b9a ("netfs: Provide a writepages implementation"), > you have added some code that is included under #ifdef > CONFIG_NETFS_FSCACHE, but if I read the code correctly, the actual > intended config here is called CONFIG_FSCACHE. Yeah - it should be the latter. Something like the attached patch should = fix it. David --- netfs: Fix wrong #ifdef hiding wait netfs_writepages_begin() has the wait on the fscache folio conditional on CONFIG_NETFS_FSCACHE - which doesn't exist. Fix it to be conditional on CONFIG_FSCACHE instead. Fixes: 62c3b7481b9a ("netfs: Provide a writepages implementation") Reported-by: Lukas Bulwahn Signed-off-by: David Howells cc: Matthew Wilcox cc: linux-afs@lists.infradead.org cc: linux-cachefs@redhat.com cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org --- fs/netfs/buffered_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/netfs/buffered_write.c b/fs/netfs/buffered_write.c index 0b2b7a60dabc..de517ca70d91 100644 --- a/fs/netfs/buffered_write.c +++ b/fs/netfs/buffered_write.c @@ -1076,7 +1076,7 @@ static ssize_t netfs_writepages_begin(struct address= _space *mapping, folio_unlock(folio); if (wbc->sync_mode !=3D WB_SYNC_NONE) { folio_wait_writeback(folio); -#ifdef CONFIG_NETFS_FSCACHE +#ifdef CONFIG_FSCACHE folio_wait_fscache(folio); #endif goto lock_again;