Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1028066rdb; Tue, 30 Jan 2024 06:05:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYTt8VZN+W+BA/foLE9h//B+d4Spx1UtMCclk5pwEp+AgC2Qg4tQOCwbREFCC5WPb4ySnk X-Received: by 2002:a05:6214:2266:b0:68c:46e0:cd with SMTP id gs6-20020a056214226600b0068c46e000cdmr6830322qvb.43.1706623557775; Tue, 30 Jan 2024 06:05:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706623557; cv=pass; d=google.com; s=arc-20160816; b=BHFfDVqrn0oBvqRdB89dAKNwEcFtMYMnpvVH8qIgI7PBnpksmhWpQ3tlgwS6HJcl1w G25rXLIkbLvgZqOEkVdoUnGTjP4cqjDpMvmDM8tAeAiRMs4APWeDwrOl7qHiwYe68H98 fVB4raDhywN2QUtz0gwNDza87CmK1Of5VaVGFVhI8Pcb5rxcizfc4wlMAv3dDp0tzDGg Yo8riKK2gRdWNQks3sXXd8n8Y3q47zUMJhf+Sou8YJIz2hrLjdkGy4IQYlNwmkwD1Hd3 At08layMrUZu0THdUlsheBLBmcWn6Vz3mx0bCgFMiCao+A3hI9JTd7mb6Kctg5Xn9AOn DERA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=HHoFdfMmSyM3w5BLIMeUZloPtbsgzZucRC80/CBCCVQ=; fh=f8ZZq6wz4Yt9VOgsqwpk2K28JW6SoizNEK2iStXLThg=; b=hS7Q6h1kiP/D1SldcJs4OjClYx5xOr34yiw2USAJIBNk8EENuf/c2EP3R55dH+83Zw zwVb68ccIpPY0DrXnC5kemkHg+F/djRIVcpHEbg6N0tKHr3QzN4FU3PkfE1l+FOY/Rpj PgOHrSLcatOglTecx/7Omz+F7/AsB9oqIlZQG+As9wRPvaz+/8WyNcX5Wl01S9ZtoXZa ysj8rHHibGueEANPngrOOFTDFcMSfWjXcPzv6AU6PwOo46TacDMEEJYmktlT9VGFxdPw s0PsdIEgOHzLXlHvT1GJLSe5bgF/czxt35JvzdAJwR/FX6ew0Zu5rWjYIlvh8+TRDyIm /bzw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-44729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44729-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 15-20020a05621420cf00b0067f5182055esi10293875qve.24.2024.01.30.06.05.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 06:05:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-44729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44729-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B1EEE1C2615E for ; Tue, 30 Jan 2024 14:05:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77B146DD0D; Tue, 30 Jan 2024 14:05:08 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 D38106D1CF; Tue, 30 Jan 2024 14:05:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706623508; cv=none; b=KNPXDuNCgfSmDheDfKIsvojFThBUf23M0ECYgoOiFk4GuXPeRLEsGpoxr3noJxmjPm6mrhDgIYUwjxAqxDyhwN0qTmco9+MNU+APinI4pcIgH0fWnqvjQJA/Bw1i3/agoiIg9kIPVX9730YauCVIsxtrNu0uQ0BEXJ0hlOLIq3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706623508; c=relaxed/simple; bh=h/0PsSn6SlbvjgMVOf5o+PaEpIM/8IyIENj99pKY8d4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aKYkhFhTToTe8rldnqFqpRyJIC9zsV2JDxUNIjuCAdD1RWNYzwDwKgLepgOy0uS/un+uBn8GfOJQhC8pUBzigmN+lwosi8QtutOQxPUrqydGqC5aduJaD/CZ2+o0YKGrRViDEKm1OphnzMmifozPAfHqm9Oggru5yMHhbS1wyDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 3C684227A87; Tue, 30 Jan 2024 15:05:00 +0100 (CET) Date: Tue, 30 Jan 2024 15:04:59 +0100 From: Christoph Hellwig To: Brian Foster Cc: Christoph Hellwig , linux-mm@kvack.org, Matthew Wilcox , Jan Kara , David Howells , Christian Brauner , "Darrick J. Wong" , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Kara , Dave Chinner Subject: Re: [PATCH 06/19] writeback: Factor out writeback_finish() Message-ID: <20240130140459.GA31126@lst.de> References: <20240125085758.2393327-1-hch@lst.de> <20240125085758.2393327-7-hch@lst.de> 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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Jan 29, 2024 at 03:13:47PM -0500, Brian Foster wrote: > > @@ -2481,6 +2500,9 @@ int write_cache_pages(struct address_space *mapping, > > folio_unlock(folio); > > error = 0; > > } > > + > > JFYI: whitespace damage on the above line. Thanks, fixed. > > > + if (error && !wbc->err) > > + wbc->err = error; > > > > Also what happened to the return of the above "first error encountered" > for the WB_SYNC_ALL case? Is that not needed for some reason (and so the > comment just below might require an update)? No, this got broken during the various rebases (and is fixed again later in the series). We need to return wbc->err from write_cache_pages at this stage, I'll fix it.