Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp108355rdb; Thu, 21 Dec 2023 04:23:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHeRdqp5wfq6OKneyfN69Cmqt2InkX+bZPE8Jc1t46HAhJVnjXG/7Yz4JgMKHwaKFSKG9kR X-Received: by 2002:a05:6512:3128:b0:50e:51dd:89dc with SMTP id p8-20020a056512312800b0050e51dd89dcmr1363000lfd.2.1703161408785; Thu, 21 Dec 2023 04:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703161408; cv=none; d=google.com; s=arc-20160816; b=wT2XrPSp0zLi8H6rQsPtzyoVuJtG4OlPnaWk/o8JCxqeZ1Q0juGJTebJ6aTayLA7O8 nvRsbY27LRVFDBZWNNiNiiwSxBxn4XYlwYq9L5rkpEOCRC6EWGkg7g3zQ4tvXamc0ksq sLEuzRFQvEMGWALHTR7YtV1hXwTc2PQ8u5PRaoTCm6tvPAtMix0ArAeY2TsPxEU51gk/ tXhNkR1Q4xPKbyNVh9cib7JTakBRCMrGrxvYoWst+rULNeWojNrEBBJ2H+QILvt+pwdw FPP4UldUmj08kBTLB0dv0BzZQR+L4mHl4TlZtFKeB/pNVoxXBwzTqUWYRJULqcJIog06 GlPg== 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=w8i/83dap7y6WWKCKA1SbbRyzQL6SEj4NFXs469YtMA=; fh=3T/uzv0xyCZLLhq6yN0VP/iWDb5rAjk7q7jsl6ANsZ0=; b=09YNAvaVnjNedhLiionzoC+0fskmZUbbH9zs247GAlEe1l2AL5idx6WQI5QELWCUKn XfMlosUOsSrF1QWIbY/i52YNEToGC3CPeqidEBUSy/J+lWLkTQpxhyv74ouFmPk9okk3 WI/njJwk2+Zv8FlXTNnkTJPtiIFSVz1PPyfUIPrElhTDBtTWPd3F+6xnUnqeWbgw4l+q aaxrB1Ursqy+bzln0FSodpOhiEJ1hUW01sEJeSdK0jnuS0z36OByucv02NG0hpnCmGZD DZC499S+3fYmBvrVfa8W2TCUj2tIUIFy/k5hwg9l7WVp94nzGiAB3hjhYrjd72Azbtdq EMbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8327-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8327-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d8-20020a50f688000000b0055437c3ea2csi148931edn.4.2023.12.21.04.23.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:23:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8327-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; spf=pass (google.com: domain of linux-kernel+bounces-8327-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8327-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 856401F23F6A for ; Thu, 21 Dec 2023 12:23:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50D4F6EB63; Thu, 21 Dec 2023 12:23:19 +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 40EC42206F; Thu, 21 Dec 2023 12:23:17 +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 3EBAC68B05; Thu, 21 Dec 2023 13:23:14 +0100 (CET) Date: Thu, 21 Dec 2023 13:23:14 +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 08/17] writeback: Factor should_writeback_folio() out of write_cache_pages() Message-ID: <20231221122314.GD17956@lst.de> References: <20231218153553.807799-1-hch@lst.de> <20231218153553.807799-9-hch@lst.de> <20231221112206.f6biqpkpwl6w64mo@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: <20231221112206.f6biqpkpwl6w64mo@quack3> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Dec 21, 2023 at 12:22:06PM +0100, Jan Kara wrote: > > +static bool should_writeback_folio(struct address_space *mapping, > > + struct writeback_control *wbc, struct folio *folio) > > +{ > > I'd call this function folio_prepare_writeback() or something like that to > make it clearer that this function is not only about the decision whether > we want to write folio or not but we also clear the dirty bit & > writeprotect the folio in page tables. Fine with me. I'll wait for willy to chime in if he has a strong preference.