Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1626718rdb; Mon, 8 Jan 2024 05:35:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgmWwS1JFi1xEGf7z1IRWSOuwNPHyxNRRjQM/w4WUVHMR0p3BTloJZcm5m7wn4TBWuyrrt X-Received: by 2002:a17:906:2719:b0:a28:b12:58f9 with SMTP id z25-20020a170906271900b00a280b1258f9mr956019ejc.136.1704720935760; Mon, 08 Jan 2024 05:35:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704720935; cv=none; d=google.com; s=arc-20160816; b=TpH0ejLDvT+fELBo5wIr8WFoCepTFWBQ/XbaME/WtUZhvVyuRYdZUE5qGyKZqyd2Pf QrJgbl9ctlHvrjOQsrPKcZqLAv3ncxWr0oXR6+R1l/HfRt5XrR9f5yT61qGXMwlzxnQ2 Vx/E80czegu9wR0IplQs+QwW+ix2beqCBrUWKHUerzkU+I56GsWtc1SHKCx8pwA15HKQ joh5rxvEpjs99j6IFN2jWRVIlfSiyXk5VqcDkP7wO4EvbLyCACmMO5oIPptvzRARYToc 3/0qn6nCq4fRH8isENTGDn58dsS4wYCi8bEM/FqHxET1bO8K5eQXEDxDbFdlwpVCPIqe v5WQ== ARC-Message-Signature: i=1; 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=UR7h1vIiNDshvxfSpWSYHrtonMQ7by+0KCwpfJgpgkw=; fh=LZtHOcWsUUhLEUmQQYp+4mDDvX5O3TWThvg5JKLe3lQ=; b=zzpB3npdDSOcmnfCucY9F0EmpVUVfk35ug2DKziRa9cR1+ZPFLqrBv2kBdLxgQe+UH WFfEoR9rcOmfbJFd6Ju8CKZoerdVRBAD9sHkcZ2JswEVWzLrjF6ORHmRZoWeDN+GoNH6 zi+B5yGyPw1ExBKT/ebBvwqLbZWHqvXyHkeRLsVP5ioNxIGYEWCw0ODeaT4YO16nEPSE gHQhoqEe1iRvzjeSy8SJq+z4K+KTZvEMWOFeuFiSA7f3BR7iJruW9pCp0rPMNXZZUwlK 51LzIgtJTRN6qhFPWhnaujzfRjr7t+FS5wDITa0NOORXB/Txwdvrx5BxDZRofKFXdTWE cBjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Eka+POpo; spf=pass (google.com: domain of linux-kernel+bounces-19626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19626-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 p8-20020a170906b20800b00a232a3191f0si3248696ejz.254.2024.01.08.05.35.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:35:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19626-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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Eka+POpo; spf=pass (google.com: domain of linux-kernel+bounces-19626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19626-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 82CAA1F231E6 for ; Mon, 8 Jan 2024 13:35:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DE0445945; Mon, 8 Jan 2024 13:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Eka+POpo" X-Original-To: linux-kernel@vger.kernel.org Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 530614595B; Mon, 8 Jan 2024 13:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UR7h1vIiNDshvxfSpWSYHrtonMQ7by+0KCwpfJgpgkw=; b=Eka+POpo5B6nLzEkb+Wz8MZ/fg JL5iL1PzMjrfiFhietAFQIvrRFjQOxoFAtvKCa/MeRbrIb0lehC5KokV228m0VovNkYguC/n3GJ61 2CPSaqTp+svHc3nOBBmbTmsq33hmm0Hje0tKmMrpnJ77g5XraEBQzn4MDRzFY9eddDwgTHfvCmetq 5hfLQmH7Bw22e6bM04vktPus2l6kjGJloU4mYQ1CZ+H+juvYrbZL+2pjppzyZWrWueGpDmfrLG4aP H56ZIZs5VEvwzdy2Ve89cA9oin/bn9KS28yTOKtK2ic6s4xmLamaDxsDlZHlZkHlTG3ZOgNfdWBI2 qGWlwFMg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rMpmY-007aCN-GA; Mon, 08 Jan 2024 13:35:10 +0000 Date: Mon, 8 Jan 2024 13:35:10 +0000 From: Matthew Wilcox To: "Pankaj Raghav (Samsung)" Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] buffer: Add kernel-doc for block_dirty_folio() Message-ID: References: <20240104163652.3705753-1-willy@infradead.org> <20240104163652.3705753-3-willy@infradead.org> <20240108133117.xtkbzeiqq6dtesm5@localhost> 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: <20240108133117.xtkbzeiqq6dtesm5@localhost> On Mon, Jan 08, 2024 at 02:31:17PM +0100, Pankaj Raghav (Samsung) wrote: > > + * If the folio has buffers, the uptodate buffers are set dirty, to > > + * preserve dirty-state coherency between the folio and the buffers. > > + * It the folio does not have buffers then when they are later attached > > s/It the folio/If the folio > > + * they will all be set dirty. > Is it better to rephrase it slightly as follows: > > If the folio does not have buffers, they will all be set dirty when they > are later attached. Yes, I like that better. > > + * > > + * The buffers are dirtied before the folio is dirtied. There's a small > > + * race window in which writeback may see the folio cleanness but not the > > + * buffer dirtiness. That's fine. If this code were to set the folio >