Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1049076rdb; Tue, 30 Jan 2024 06:37:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpGjh29vq+sL88QQo9Rn8J24lY/pOJ5oVnYY6uLduO1tiUjdD+kItB2jdaKFYTxVhMHo6f X-Received: by 2002:a05:6358:2c86:b0:178:75ac:bd75 with SMTP id l6-20020a0563582c8600b0017875acbd75mr3677919rwm.56.1706625459966; Tue, 30 Jan 2024 06:37:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706625459; cv=pass; d=google.com; s=arc-20160816; b=ufY5aHQWGvRitRgWT+tFvRXcO/2yXHgMqH7G51l6Itui6Kdx3yIRvKVOw4od32JEXl Fw5dn4Vie1CFyuxSlfH6Rpvl1J6/3GQIOPmHD8NUtiaeJW+rQ/6QjurZ/KWxOKp9Kd1s UNd0Tj8jWfCv4YaQBgDRT4v7zMsGvUPttDZupWaeQmRHLdzegkuEpw2ufIhN08s+QS9M mUUSxQOzq1uAKd+K8dtEFChhjWau+DYRrYXaFjAq8g8get1DzAwAXXHVEHOqKemKOInb 1t5AeRdMLHzDwEI0s+NTvmvO3/87LbhO3jCcd+x0HvdaqKjGEOn1l36Mt5WbI0LtfIAK dnHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zaujk7yqT3tCcvpOY/dPJbxkbTmDPNwYZxgb8W+DENY=; fh=QHT+MfaFKeT09HvHoztzZnxg5faMOkgqNPKkVGF1/hY=; b=AAGNRu22AQlpXGXTjILoMY0Kkc3Z96vZ06aV9LX1mZXekIburSmQnlBIrrUwCiXXJM b/OO8MeDX/5XAfZmI/tKBZ9dPjsvghp+lbC5aXbvk2+Gjq3HZgA6WORs5Aqbl1gl9Zl3 ZEa2Z9JQUz3LMfzGLM7VK2HY7IS5OedAYnq2VNOMJ3EFLkRgDOycguR2OSOhYTNfSMcb vT/0d6HUDpfYrk6qO69SUBaSGIr2/EC2qMfYJz8UukuigF89doxl1GxWriCyvvC7TcRu Cu6h0wb1PhpOTxBNmyr8w4cNl4e6N2X8mj1uBJbCyP8UpfbXo7T5vYgPHRkCBdERXeSm Hd8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M79+xVf7; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-44748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i63-20020a638742000000b005d8fdbbd5d6si1139291pge.718.2024.01.30.06.37.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 06:37:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M79+xVf7; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-44748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44748-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DAD4C29125D for ; Tue, 30 Jan 2024 14:27:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDE436E2AC; Tue, 30 Jan 2024 14:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="M79+xVf7" 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 53C6545BE7 for ; Tue, 30 Jan 2024 14:27:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706624828; cv=none; b=r6ZacBYT8v68o2m3ORejRvBsmPKpeyhkKFREM6N0vpygidTz5/rz+Vc4WYlfmAKqCCYVrCK5dBQAOfrIVpL6dE6jpQu5wVJFYOIdAk9jR7JoxnABJ/tlWVKTschuJrQM0n7tdSdUMuMKQkzXs7odDURIE+lMS6VSK64uiR/s6Dk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706624828; c=relaxed/simple; bh=5p3LgCdEGKk3NWs/IAlbX6OPgZW0pLlNEZJxIYqkGoM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OaynlvHLvM69EU1wyEOMEgMbH/euDPwbNRiZ7JGqoW8kH4IajpOOsWv/Zmn6+b+ehvIkEkM749q4Rc1MjWY9Y8UK+mFkgMVNYOtLH/Z3PNov296SUjmCLObBdUVWF1XKr8+hok3IVLipWtjsiaYvXfKOkxtTdhAgy9IQ4dVc/2w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=M79+xVf7; arc=none smtp.client-ip=170.10.133.124 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=1706624826; 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=zaujk7yqT3tCcvpOY/dPJbxkbTmDPNwYZxgb8W+DENY=; b=M79+xVf78bM1ed+RR7PYPDHzdpxuZ2WpQk07xFKpKtMpZdzlB9eEHsBh6fSC+/Ow8EJS2H kvo79kZO4oZ7Wq1tOpE+sAbCA+je5UjIvux0u0MvHbuhqHNi7ZwSseK/T8GMSX9w3tp1Mq 8/Fwuci+XzAxPSP0y56dZw7IYi3BhwA= 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-678-iuQoh3B7NLejN0iWnFWjiw-1; Tue, 30 Jan 2024 09:27:05 -0500 X-MC-Unique: iuQoh3B7NLejN0iWnFWjiw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (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 6E1723806711; Tue, 30 Jan 2024 14:27:04 +0000 (UTC) Received: from bfoster (unknown [10.22.32.186]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E9862134; Tue, 30 Jan 2024 14:27:03 +0000 (UTC) Date: Tue, 30 Jan 2024 09:28:22 -0500 From: Brian Foster To: Christoph Hellwig Cc: 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: References: <20240125085758.2393327-1-hch@lst.de> <20240125085758.2393327-7-hch@lst.de> <20240130140459.GA31126@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: <20240130140459.GA31126@lst.de> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 On Tue, Jan 30, 2024 at 03:04:59PM +0100, Christoph Hellwig wrote: > 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. > Ok, I noticed it was added back once I got to more of the iter abstraction bits and so figured it was a transient/unintentional thing. The above tweak makes sense to me. FWIW, I haven't stared at the final patch long enough to have a strong opinion. I tend to agree with Jan that the error handling logic in the current series is a little wonky in that it's one of those things I'd have to go read the implementation every time to remember what it does, but the broader changes all seem reasonable to me. So for patches 1-18 and with the above tweak: Reviewed-by: Brian Foster