Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1021400rdd; Wed, 10 Jan 2024 06:31:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEv5JYU12ak4OJJk+RLKeDhlp2+DF9o1lx8iKxhaHjHEkSqeNkp3Q5AIwVlVF+HaITeQz7i X-Received: by 2002:a05:6122:4c88:b0:4b6:bf49:ea3b with SMTP id fg8-20020a0561224c8800b004b6bf49ea3bmr431188vkb.26.1704897081754; Wed, 10 Jan 2024 06:31:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704897081; cv=none; d=google.com; s=arc-20160816; b=IVjxWbV4hjas2TjXeliM8ytoV9VHIaW94+J9KHThO7FlVFjWY6/+LEfoHoX9KA0fl0 ECkiBrlVkJtmKZt4du1cpRhbCDpcUrrNNnURooJBlZkK4T+fFxSyjb4Aj3Gdmk74644I QhWcEElri8r5qouqNBPGiCV4vf/pVQCJhYKee+fe2Qr+mbGRZ8Sz0qGNORGfmX1+Jx4b WLJF6GxW/J1iywKI4J+uzP1Ke+5gLBbjhiX2Rz7L5xZ62d2kl/z8RKNlTcU7EAca65ce Ek6ALY5oJX3Ur6o0eULVIMcLms+yF0yb3DhQHtj4OHyxll1FKncIq2Hpe4p3s2MvtG8G ql4w== 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=u+is9lVWUyd2B8sJ46D7VtCubhSyJxqMiGf3TjCy1Mc=; fh=MM/58el6ePaG9yI/ShnEbEGbs7kFaCa7Gk6f65QqCLM=; b=IsQd1+CsisUr6Mzvz5wY1RqQOlXNYPvGzBqLJ2jID2Ctphwh7ffhwyiYkFygOSKYVB UX7TagLRM+eD5l6nVt/l2k7QBe2vQfbavlz6JUq2RJHKZ+lSnG+lV2DmgPaqp7JP47GB 6K5CLpdxq2ayvtIm7loxafSEdLeqXjbweAhi3GTN+jGkXfEY0xOykLe27yZvdSFnuCY1 BXHAQT4iDL6f5Ryz0Q/cfZqL+nKJ8qAArrXFdqzt0Hc4fwDRnUdrwOoC4uqfnC+KQRo8 IvRHPU3qtnpWQt5IytOo/d+iiGZ3UoiBDJp6MqvT1KsUmCJf4vNLiXqykxlCfieeslem qRog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=fW14vjtT; spf=pass (google.com: domain of linux-kernel+bounces-22359-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22359-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 a1-20020a1ffc01000000b004b6db792626si717720vki.302.2024.01.10.06.31.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 06:31:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22359-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=fW14vjtT; spf=pass (google.com: domain of linux-kernel+bounces-22359-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22359-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 792F31C25103 for ; Wed, 10 Jan 2024 14:31:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43E434B5BC; Wed, 10 Jan 2024 14:31:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pankajraghav.com header.i=@pankajraghav.com header.b="fW14vjtT" 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 E12BF17C9; Wed, 10 Jan 2024 14:31:07 +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 smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (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 4T99Ft3qTGz9srN; Wed, 10 Jan 2024 15:30:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pankajraghav.com; s=MBO0001; t=1704897058; 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=u+is9lVWUyd2B8sJ46D7VtCubhSyJxqMiGf3TjCy1Mc=; b=fW14vjtTnjTSTg/rRqZ9p+pNE12JckicMl8pHUj1MOnGM614S4392nAqHapU6Hhvq5zwxk TUlcHdHj4kYuRaKtH3wI+wF9cT+o6s1aOhFq79Ci384/8si+dpe+hNigyP00fJYcGMl1nf 5aBE9BDLRgyzU9VCwJL4GqtI4ZPrdjWEAFGL/obRnzjEhHJlfryOwEBUR/ZE1/uGQAWDBg vrlF8rDZhtuWd7MMiWZWi2y87I+DGbhbw4xCVUOrAMAQzfv6bVe+YzEp4kioV1Au90oPHm uYfc4nfivJQLqzBVcPIvwmGt4WiJ9ER1disqYXK84v2+PvyBTg9cxCHL8NJT6Q== Date: Wed, 10 Jan 2024 15:30:54 +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, p.raghav@samsung.com Subject: Re: [PATCH v2 5/8] buffer: Add kernel-doc for brelse() and __brelse() Message-ID: <20240110143054.lc5t6vewsezwbcyv@localhost> References: <20240109143357.2375046-1-willy@infradead.org> <20240109143357.2375046-6-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: <20240109143357.2375046-6-willy@infradead.org> > + * 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 > + * try_to_free_buffers() may strip the buffers from the folio in > + * preparation for freeing it (sometimes, rarely, buffers are removed > + * from a folio but it ends up not being freed, and buffers may later > + * be reattached). > + * > + * Context: Any context. > + */ > static inline void brelse(struct buffer_head *bh) > { > if (bh) > -- > 2.43.0 >