Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1624619rdb; Mon, 8 Jan 2024 05:31:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiZU33aAiIc3CLFnrPjyGTnFICZ6l0WPxHH/+q9NtkB528YYKTSVypn/+at/NH+8qNO7GB X-Received: by 2002:a05:6870:8189:b0:204:41a5:4ed6 with SMTP id k9-20020a056870818900b0020441a54ed6mr1261711oae.15.1704720700208; Mon, 08 Jan 2024 05:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704720700; cv=none; d=google.com; s=arc-20160816; b=O/amnbUM3VNVn0ie1muRLchaMW99ZNaVZZs4gMjzUaLPmBI7V5c5lY+MGb61JNAsYE G9qZmqbMrB+CrLAX7Sga+GX9viL3KnCbYQHBu/UECWEn/fBBNiUWsrfdHsNgAUC0lRam bFuXu6pPDeZrFo+abm3ZSeKoXMYnvSrGC73v1FqN+7Knr+qaZU1P47oD3iCUmjQWtwln vKD5S0PVA5tz5wt4toJ2mGsJtWCOhVDNUxdE/FnRfsdUj58eZdrp5u0KKEtkweOfq+Oy +GKDYVY2/5uKb9parpbqlJUTj3LadK0oKy/JAEBxTyzCP/1Mtt+tNluRoijk0ewJ1SEt KC3Q== 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=5oRIFaBZBSyp5TDSxL6kowSEyWtZ3AkKsLMCOdArOrI=; fh=j6FpqJpM0r3X0FI6D2tp0sm/9F0dpzvQ5GLWJ5myoXc=; b=OZH1j+2s/1r+7nAlBe8XTCX+5Dd+3ZaFAR1vn7G11HGJUrv23H1mOYjn81D6sYhZh3 J4W4tRRVmIMxosrCTCPMm/gtpbUsfG0RsxZ5dT3ek0pNi6UbNUNMW9kZoKgg1z9AjYod qCHl6g72VaB6h5R3T1Sg+8+2tyuFkLst1zJ1KiUdoA4leNid3yo3/guARjfLSTR9Bmi0 GrfaWiOYu7awdDC4j9lEp0OO05D0TPNwj78tOd+D3CPJE7zmv3Gzb8Cay+rhJV3EtdPu nKnV3WpSRhZFNxbLcDnZ8a3SGKnoOVwDDOvMLUmjf3qWNxwKGzYDO/Y8XGunhjFLqvPk /X0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=u+FNpHsS; spf=pass (google.com: domain of linux-kernel+bounces-19622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19622-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bb21-20020a05622a1b1500b004298a5b6b39si3859217qtb.238.2024.01.08.05.31.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:31:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=u+FNpHsS; spf=pass (google.com: domain of linux-kernel+bounces-19622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19622-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E38E61C228A1 for ; Mon, 8 Jan 2024 13:31:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1254144C94; Mon, 8 Jan 2024 13:31:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pankajraghav.com header.i=@pankajraghav.com header.b="u+FNpHsS" X-Original-To: linux-kernel@vger.kernel.org Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (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 809AB44C76; Mon, 8 Jan 2024 13:31:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pankajraghav.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pankajraghav.com Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4T7w204wbbz9sZJ; Mon, 8 Jan 2024 14:31:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pankajraghav.com; s=MBO0001; t=1704720680; 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=5oRIFaBZBSyp5TDSxL6kowSEyWtZ3AkKsLMCOdArOrI=; b=u+FNpHsSlpUobWJrXYPlQcnKCMDfaVvKm4Bqg2uW1rLn3gFruFCwISezLS1FEnUMFayGf9 sHIMr0Wy4F52sNYpx2XMugxv0u69pQqnlmbbYC5ilDYJQdj1vrRiqB42u8yupuhfvIuoni 9hQtlZ90FHvml3K3EZsVCezVCep+kSWnMaIqWJROnhpCyjBvyc1y/oyx/3hDmUXu2gAmK9 e9AX49PMbvtLAt6I0liCoE5xGka4koGG7piLGtfBQFMR3kW7RxOTQhxwmnn6CpQbdRI6GI vpc9jWDrHbFwMQtArdaXK+nBWr9X9Lu+Gz8ZoD17O7xam9Ho5G0edYwJJp9wlw== Date: Mon, 8 Jan 2024 14:31:17 +0100 From: "Pankaj Raghav (Samsung)" To: "Matthew Wilcox (Oracle)" 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: <20240108133117.xtkbzeiqq6dtesm5@localhost> References: <20240104163652.3705753-1-willy@infradead.org> <20240104163652.3705753-3-willy@infradead.org> 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: <20240104163652.3705753-3-willy@infradead.org> X-Rspamd-Queue-Id: 4T7w204wbbz9sZJ > + * 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. > + * > + * 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