Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp109580rdb; Thu, 21 Dec 2023 04:25:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3okrVUsDkgt9904OjvwqlQuNkJNUkAu6T8uAcWl/0ZdK7OP4qZXyg+baZ1M/0zOnESdyC X-Received: by 2002:ac2:4101:0:b0:50e:5c73:f17e with SMTP id b1-20020ac24101000000b0050e5c73f17emr496512lfi.123.1703161559069; Thu, 21 Dec 2023 04:25:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703161559; cv=none; d=google.com; s=arc-20160816; b=B9gc/rfp9SfCn2X9I0H1gCkplc1Z4y3Fo/3naNCcOe329nHEg2NR7LCF1psUZOPlli 7E0QmWzT96ysEouduvlM6T2XO0U+nQDoqEGpOAM7JYbhbM+1zHm+tYlC5Z7ZDl/zh4iA Ctup60kUKyHYcDsJqboXfJefOtrdFvbijQKDJ0/hfTAI93cCRVjJcalfELqbxMk3Cc+i RM3mjiHS6OYrZDdDhnUqTCmS2BZlVADB7gT8GEfUaj9JeZSWbaf+tPl7K0iNiD6JAoon mbD49C6iZX6xKjtxMp36F4CPs/f+T5CHJLOq9BIEcc4OXbS+FtHZuXPjkpozd26n/qjA GxuA== 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=ft1xC+ODNoFQk1EihE6ea04rNBj0+WzaLUlT/DP2aDw=; fh=3T/uzv0xyCZLLhq6yN0VP/iWDb5rAjk7q7jsl6ANsZ0=; b=GCf2pB9bMYMsGM2Mx6LTdNcpPMHc51/xN+GweXLZa7+NSbA77ypxD41QIPyLGrnNH4 emiATuLFYx4HZSoBreFxy6fo8bSCNbksPWoWaoEhUjR9vNyBqUTtOQ3uuAWqDbUma4/D Jc6gm5yOsQJ2Sjx0Uz+SQHQtbpX4VVyQz9hPw99LOaJeynsJQj8HVD6pYnhiQayDUrQp pBpWNb3OneWfYNRPqa0W9CsXtjiaivrmsyAzmmgq/uvEmZz4S4hxv5WLK8q55GLRHOYb MEG5pUU0VByU02PG6Hf6cFKXVYsdJE9aPjfAYY49UqzaaqLrCfqiz2OrPF39b+J7Uobq 31VA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8328-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8328-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z39-20020a509e2a000000b005534daf4037si813396ede.688.2023.12.21.04.25.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:25:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8328-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8328-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8328-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 am.mirrors.kernel.org (Postfix) with ESMTPS id ED71C1F221AA for ; Thu, 21 Dec 2023 12:25:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1ABD56EB66; Thu, 21 Dec 2023 12:25:43 +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 0B84D6D1CA; Thu, 21 Dec 2023 12:25:41 +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 467BB68B05; Thu, 21 Dec 2023 13:25:36 +0100 (CET) Date: Thu, 21 Dec 2023 13:25:35 +0100 From: Christoph Hellwig To: Jan Kara Cc: Christoph Hellwig , linux-mm@kvack.org, "Matthew Wilcox (Oracle)" , Jan Kara , David Howells , Brian Foster , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 13/17] writeback: Factor writeback_get_folio() out of write_cache_pages() Message-ID: <20231221122535.GE17956@lst.de> References: <20231218153553.807799-1-hch@lst.de> <20231218153553.807799-14-hch@lst.de> <20231221114153.2ktiwixqedsk5adw@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: <20231221114153.2ktiwixqedsk5adw@quack3> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Dec 21, 2023 at 12:41:53PM +0100, Jan Kara wrote: > But I'd note that the call stack depth of similarly called helper functions > (with more to come later in the series) is getting a bit confusing. Maybe > we should inline writeback_get_next() into its single caller > writeback_get_folio() to reduce confusion a bit... I just hacked that up based on the fully applied series and that looks good to me.