Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1130855rdd; Wed, 10 Jan 2024 09:27:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBNatMzWcEfVH1CQ3QSUgzFhn0hU/zSf3ZISgqliexm/3PVGraTN3fRfouageoTuCpfV6m X-Received: by 2002:a0c:eccd:0:b0:681:2364:1d3e with SMTP id o13-20020a0ceccd000000b0068123641d3emr1113071qvq.25.1704907639513; Wed, 10 Jan 2024 09:27:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704907639; cv=none; d=google.com; s=arc-20160816; b=HDMoKdCM6Vvyk713VAcbM/kL+BtjiPsXmwcSpTWyeqB0+Ro+jkhzfECaOMhriH1j0C btNFamVnfeG9gstS31rodzg8oxIi8DIg3Yml/GwiCSt5eSsexK02kATPOuhPH+civpUa HRmCtiTvUIKGKn0UEengN58LOeE5ytASunIPSE7hSFh91dJwM+TQ9DdQmRArLDFUW6aP 7lRoHRww3vusHSkMDv2TLtKnFWv7mziR0E8kNKfzr2tgzaTH+/3EkKg7kU6NcHQ3S/nj ZaylQwBiu7Be+YBEMphz5cLiuX3bj+rHuNr+dST0r/C+hpn5vVBvL6igWHFH6jr08RoF sHGw== 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=UG5rTIW8JDfkf7LcpVd9c2CMgymhez6iw7HFayDkZY0=; fh=xO0xaQqsatLY7XaOsDOxzk+bRBbBEJpPMEmbQ4fr290=; b=HOIcbRxzfDzRhG1sgFuYu2i2Ke2++5xlX3vTbPmmneSdz+3eVe9XGnACOP8iTbAN0Y Gk0qPyNqNo56jv5dS0uVU8EH3qOGD3lM/zfmjgFNmnPp7kXUr4z2Kz8Hai6T7Q37ZgfQ Nu44QG52MJwZ4pECUGKWz9x6JP28qbDdlROkqqxOsVb1RpyUtRd4pNf+Q1cu/wZzh2Oi VQdJH+kHvJDIPn+/hZooUU/1u/tPbvQCiyjkd+aWm2iGKFa/1YkmR74Blo0Uc5sAfVAX 3mvbn27+Ko6wpM51GE3wuNAPTfHU4ELDYnBi0xJs4/2ULXdGOqigZzCmCAfm+SFOvVQm 1PVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=liMpCFku; spf=pass (google.com: domain of linux-kernel+bounces-22534-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22534-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s2-20020a0cdc02000000b0067ab0240542si4760251qvk.500.2024.01.10.09.27.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 09:27:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22534-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=liMpCFku; spf=pass (google.com: domain of linux-kernel+bounces-22534-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22534-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 479D61C226D7 for ; Wed, 10 Jan 2024 17:27:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CEC84D103; Wed, 10 Jan 2024 17:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="liMpCFku" 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 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-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: <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.