From mboxrd@z Thu Jan 1 00:00:00 1970 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 7912147F56; Wed, 10 Jan 2024 17:27:06 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="liMpCFku" 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=UG5rTIW8JDfkf7LcpVd9c2CMgymhez6iw7HFayDkZY0=; b=liMpCFkutacydN5YhfiSiRM2fc C4bDOjiQsf3vFMO+kQpyV+EJB9p3jDReJpUjsC6rz0q0sR5hfahB7jnfAnI9ezzKpPTwvnbpfwdYz BrnwpKAZMZrkMo2GZHKlLSwNyeN1qu3bJv0+fM9BQFls5hCqteeXKdLXpbjwIXJ3kn25fhkjC7Mu+ 3DDdRK1NuV0JooCKFMQpLMwR02Vt+D56bsIWj8BCxRCLgACvjHZnpi9HtXWjhkhqTw0hMiVm4Vug3 59y54dnT7j5jHm0QYwk5/FZmSdRsXrcDwyGCG5GNnf6tjhlWcTQv3tAiLIb+/4tvS0ZUmVEwKfcSj u9DvS8DA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rNcLv-00Bprg-SR; Wed, 10 Jan 2024 17:26:55 +0000 Date: Wed, 10 Jan 2024 17:26:55 +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, p.raghav@samsung.com Subject: Re: [PATCH v2 5/8] buffer: Add kernel-doc for brelse() and __brelse() Message-ID: References: <20240109143357.2375046-1-willy@infradead.org> <20240109143357.2375046-6-willy@infradead.org> <20240110143054.lc5t6vewsezwbcyv@localhost> Precedence: bulk X-Mailing-List: linux-doc@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: <20240110143054.lc5t6vewsezwbcyv@localhost> 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.