Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1214085rdd; Wed, 10 Jan 2024 12:10:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSJnjCs7Zxu7W34vUXbYlEsSpzur8m3N97JOVvCvMtIDVfoAUreOwX8HP5YMNGevs9JGWq X-Received: by 2002:a17:902:ced1:b0:1d3:e78a:3f05 with SMTP id d17-20020a170902ced100b001d3e78a3f05mr76991plg.38.1704917441983; Wed, 10 Jan 2024 12:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704917441; cv=none; d=google.com; s=arc-20160816; b=E5sdbAk43pu85Dn19xfJJVpMQ8+0drYiPA5Hm2qpM0nEPXhjzb4M/Daj68jgflOrk6 cFaWnHvvgHVv8o87o81POFLellvrq+CDqNVFs0ZSU31EtktJHe/hn2V9i/4DHllQ4Atn FJJ4gXFHj/VEqDvnaTiW/c5uYcByPFh7trP07ksUsrFwGtIze/A+Vv+DejI4S/r3m5ff ghlQFpbTtBDNZn5235cQVsFwUQjMd1ysKkCCAWq2ZVJSwO/Hb9XlLANUK46czRAXMclN QWoRKhHpz2PsvjiRE51YCtlnZVeVFxeBHiZTDxLW6tfu4BRQ6x+dScevWn+ctpBWMSfT Aeeg== 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=VJ2kCA8YCwYpXpZJNP0ssP+4NJQXe95ZM95bicTX6po=; fh=DpCtZ80kt+1LEP3sY2wunNKCm6FoYnNcLv+SQtaiwQY=; b=deQxS8pr2K+dYcXJbUG3xkSPr0ArcntzbBOSrwl1U6lVsfJX7ijyDc1z+MqMjTZcb4 jMqyEd25p6vTx9yBg7KS2JkUIW5NZUG5td79+IsFQH5z666t/bqSx/BdJuXwWPTG76SL p/NcJdg3QKtXpqJ1GQH5g45wGB4js0mBsYcYZ4Ndj6KI2la2VWBuKOU9k+BLXsGzEg7v EXZTBsZ1zJEllOIQ/CBd5TwIchPUnCqYD/UV2kGgkNANZ6QS/uytmpbnoNNR9zlRFIY3 j9oPsnnSYb9QJCrtkXa6Z8Kufyps5UQu+cCeLSqKmGA+T3vfuSS6vMiDmoqnTnLhC2mp jnKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=ignPQt+v; spf=pass (google.com: domain of linux-kernel+bounces-22691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22691-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j9-20020a170902690900b001d472670a14si4244032plk.303.2024.01.10.12.10.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 12:10:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=ignPQt+v; spf=pass (google.com: domain of linux-kernel+bounces-22691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22691-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1743E28731E for ; Wed, 10 Jan 2024 20:10:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 837494EB31; Wed, 10 Jan 2024 20:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pankajraghav.com header.i=@pankajraghav.com header.b="ignPQt+v" Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (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 DFFF14E1CA; Wed, 10 Jan 2024 20:10:26 +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-201.mailbox.org (Postfix) with ESMTPS id 4T9JnV3Cmtz9srQ; Wed, 10 Jan 2024 21:10:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pankajraghav.com; s=MBO0001; t=1704917422; 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=VJ2kCA8YCwYpXpZJNP0ssP+4NJQXe95ZM95bicTX6po=; b=ignPQt+v9oJPex7kdcjnzAMGI+5KEmpVf4PYzJwEgoelMJNzpBYxvHPT3EPUuUFnTLI4dN JM86hWbKTAW5un+Q5IC2xNoy/Ag9i6YmBHL/DgpJBCrnNoZkJqRw8FwA1qkhiEh9ItWQWz DEEXCTnz8sroyiher4k/qCHanWMO//bD/uiTlJsRuNf4kxLEpApWcVoyoIMRLMLSB095KA TdpZ7jQ5OTPSkRn77xMyLmL5NArdxZH9S9UPcTuviX9Ipl6MTqqMg60NsMjD/OLkX+T8DE i0uHcn0qcCehDnQxBHTWYSfvcQnPvJSErILaWfrQlZGXjUIs38rmNrK5hR4XuQ== Date: Wed, 10 Jan 2024 21:10:19 +0100 From: "Pankaj Raghav (Samsung)" To: Matthew Wilcox Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, p.raghav@samsung.com Subject: Re: [PATCH v2 5/8] buffer: Add kernel-doc for brelse() and __brelse() Message-ID: <20240110201019.mrmrdelyndweempw@localhost> References: <20240109143357.2375046-1-willy@infradead.org> <20240109143357.2375046-6-willy@infradead.org> <20240110143054.lc5t6vewsezwbcyv@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: X-Rspamd-Queue-Id: 4T9JnV3Cmtz9srQ On Wed, Jan 10, 2024 at 05:26:55PM +0000, Matthew Wilcox wrote: > On Wed, Jan 10, 2024 at 03:30:54PM +0100, Pankaj Raghav (Samsung) wrote: > > > + * If all buffers on a folio have zero reference count, are clean > > > + * and unlocked, and if the folio is clean and unlocked then > > > > IIUC from your [PATCH 3/8], folio only needs to be unlocked to free the > > buffers as try_to_free_buffers() will remove the dirty flag and "clean" > > the folio? > > So: > > s/if folio is clean and unlocked/if folio is unlocked > > That's a good point. Perhaps "unlocked and not under writeback" > would be better wording, since that would be true. Yeah. That sounds good to me!