Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6810850rdb; Fri, 15 Dec 2023 08:54:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3McDBL4CAwXSoesBgalR+FxuXxnkP5CATcTDZR1Bc9XQ7MFBxiF99+vT6Pbg3mUS8JmQ0 X-Received: by 2002:a05:6358:d04a:b0:170:17eb:2055 with SMTP id jb10-20020a056358d04a00b0017017eb2055mr14707384rwb.62.1702659297746; Fri, 15 Dec 2023 08:54:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702659297; cv=none; d=google.com; s=arc-20160816; b=GPv5Txr15xMf8UTami9oZdBkngoUbBSQiHC7yDSrFup2BYqKONaUEyBcu7uviNnQ0a ZYMm1qBpnLit7Vmc0ZiDB9MPYoxi7BPKi4jNWN6PrAxo5EiGOI2+wk4j+jmJ9nzIlaZy A9OgFiEpMF4LVucmjQ0FMjdBXIVrGhXU3sF1JWNPldnWxnJmSH2OCYf0A0CRXGBWGQYB 6a/c0/ekTMbNEkcO91mfE8JOlFo/7thf4LRHi2qD9bS5pMsvyyYErCkR6/Jx+UFtXOmi V9Ft5HCVX9mkTAsIorGw18IZdtyzbT8q9QZFyqDI3wjIOc67I0i24RpThKF+JCTQpqIU f6jg== ARC-Message-Signature: i=1; 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=HfZm3GrLNqRcr1stP3C0OQ9Y9vvH12bwjhTLNTmIqcc=; fh=A0tnOrRC0GrzyKDzvIPuPmBtgzTJEu14B0CC5ZmmZN8=; b=rQlXkfWet1XFoilDSx3zIr8xQBO2hMdsbaQZ/+uK/qhZcfXyvzfTnOv2nYty7XbeF4 p8vGCKGoJP5K3yoc9VCFMM11zkyuE6SuJPQIPFtYZlJS1UYEXUbapVMw50bGOiRgyX/R MN6JRIRlt7tvMRE0L5Cq2YZUujXexzUfPZWZ8Ikf7heWL2iNa8/XbwtjBr62IEDeIl5W 7Gp09gSjJyI16+B4nYooHUHTRK0WuNtL63c9jimhKEivM3aQuM+wgr+8XDlM06X5AsOE b+3QnXWcPCnx4RZPNkmDJsSWpRuPy13ZujxJOnukgQDvq21IoDrMLXjzZWIPYdxiRrZK B6Mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1336-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1336-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q35-20020a635c23000000b005afc5ea43fdsi13494022pgb.849.2023.12.15.08.54.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 08:54:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1336-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1336-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1336-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0C116B22543 for ; Fri, 15 Dec 2023 16:54:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 290B53EA83; Fri, 15 Dec 2023 16:54:29 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 DC6C03E49F; Fri, 15 Dec 2023 16:54:25 +0000 (UTC) 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 4E8A168B05; Fri, 15 Dec 2023 17:54:20 +0100 (CET) Date: Fri, 15 Dec 2023 17:54:19 +0100 From: Christoph Hellwig To: Jan Kara Cc: Christoph Hellwig , linux-mm@kvack.org, "Matthew Wilcox (Oracle)" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Kara , David Howells Subject: Re: [PATCH 01/11] writeback: Factor out writeback_finish() Message-ID: <20231215165419.GA3175@lst.de> References: <20231214132544.376574-1-hch@lst.de> <20231214132544.376574-2-hch@lst.de> <20231215132639.ftis3fhmcqkhrpzo@quack3> 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: <20231215132639.ftis3fhmcqkhrpzo@quack3> User-Agent: Mutt/1.5.17 (2007-11-01) On Fri, Dec 15, 2023 at 02:26:39PM +0100, Jan Kara wrote: > > + /* internal fields used by the ->writepages implementation: */ > > + struct folio_batch fbatch; > > + pgoff_t done_index; > > + int err; > > + unsigned range_whole:1; /* entire file */ > > Do we really need the range_whole member here? It is trivially derived from > range_start && range_end and used only in one place in writeback_finish(). Yes, as nothing modified range_start and range_end this should be easily doable.