Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7821466rdb; Thu, 4 Jan 2024 08:40:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEv6GFTwabun+fDf9VzY2IF6SX3XsH9nnB2zkMH27vlB7TvXvDtMiKuC7ve6hlwT60RWoNX X-Received: by 2002:a05:620a:55b2:b0:781:e6a5:f027 with SMTP id vr18-20020a05620a55b200b00781e6a5f027mr629007qkn.73.1704386450866; Thu, 04 Jan 2024 08:40:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704386450; cv=none; d=google.com; s=arc-20160816; b=FiypXYAlM7N/jtBE/uJ2Qt2apFJWGv/SF3hob0qq77Q+NukURs+7m3aPPrcBAI1RE7 DCrwABNxWmyYu1OLh9m0gRmketJi6nrjh8tgwcMiebsLr2ABCBCigqqYP0SBmmfNbLQG pZSnKG0JDVHafKeHsl9iISSJJs8drOqak1DPUHJgvSZ2XV71G+JSH6O/xYZb/8u2jxdS +Df/zVM0jsnP658iTUJGNHL84NKFnWwFLc19EjwBdvxrazOtPJyrQ6jpWZBdRGU64VAx Rcgl+AeXQkqOE9JWr6x4nMEenuK2e+0ZuFicLaJHkMy+ArETezU8fggqprZtYPA3rx+U H+cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pxHBfcGZFBAcpsHKOLVI+HuTnhEV5ZNIlJJNDoYE0m8=; fh=C1THyYX8mZv7/wM+MHV1ZUcnQSQiZbUrxk0HRhdecS4=; b=lNxEqSykNnmbi1F5j3+4lpF5VpsLqzCMh7mPuC6jMjWY9lbHTYExn4FDtpqhdcFrtK SXFAUcCmVjc13clsNLlmHLVPDj9FzC1OA3tS96aBJPbHzDseSWOOCrU0aY92vy30myDE yHyKGXTLnOuSP4cZurnJI+4wC23YLoAw+t9Z0ObapzUZJbthICyb4kAIzt9ro6+IwbxP yySb/oVYIo2uob/o62abBGtbuuIP0v/Qd7uKhOFADU+81Y6Wuqszo1yQDwEKqI3Nvg4Y wIsHnYLAARNASxUBoRtCnYygOaT3ZpoOCjJ8xqkoaYztg6+4lPCcg/9QAVo99gABaRCP plRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=OWV8vsRG; spf=pass (google.com: domain of linux-kernel+bounces-16952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16952-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 de11-20020a05620a370b00b00773dc958046si33420818qkb.258.2024.01.04.08.40.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 08:40:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16952-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=@infradead.org header.s=casper.20170209 header.b=OWV8vsRG; spf=pass (google.com: domain of linux-kernel+bounces-16952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16952-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 9CD811C20E42 for ; Thu, 4 Jan 2024 16:40:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1C622D604; Thu, 4 Jan 2024 16:37:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="OWV8vsRG" X-Original-To: linux-kernel@vger.kernel.org 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 73A272D033; Thu, 4 Jan 2024 16:37:13 +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=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=pxHBfcGZFBAcpsHKOLVI+HuTnhEV5ZNIlJJNDoYE0m8=; b=OWV8vsRGLnY1KSmhLbM7xO+eCA 0OLBvsxwFx11AhsOk2njoTnl9f2DpRBUVWqrJ+ixKokE2NJMXQ5jcgfit4pbLVQvPgdUMZiF/lsMV 5+YPtH15b6nbSp0xtIY+0srE2HPA+7qyFZ7eipqL1KTAu7N83W1IcJQDwCg+GYDGdvbtyCJ4G/lRA p9Nlk1oYuGRJGEnYPZ63w2m/AOivueSMz3jkJ2ictllQyyrjvuzEBxrAwoNllrWgF/Dl5CvpGqD5N OjSPAh/aN8iE8Fxqm13/K/02fULq6ywnD7OtzPizPvn2OI5MHwC1rNXh84pWFVPo1K4wfTrTzP0Ur mZjomj4w==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rLQiE-00FY2X-QZ; Thu, 04 Jan 2024 16:36:54 +0000 From: "Matthew Wilcox (Oracle)" To: Jonathan Corbet Cc: "Matthew Wilcox (Oracle)" , linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] buffer: Fix __bread() kernel-doc Date: Thu, 4 Jan 2024 16:36:51 +0000 Message-Id: <20240104163652.3705753-5-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240104163652.3705753-1-willy@infradead.org> References: <20240104163652.3705753-1-willy@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The extra indentation confused the kernel-doc parser, so remove it. Fix some other wording while I'm here, and advise the user they need to call brelse() on this buffer. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/buffer_head.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index d78454a4dd1f..7558cd1d3eb3 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h @@ -437,14 +437,17 @@ static inline void bh_readahead_batch(int nr, struct buffer_head *bhs[], } /** - * __bread() - reads a specified block and returns the bh - * @bdev: the block_device to read from - * @block: number of block - * @size: size (in bytes) to read + * __bread() - Read a block. + * @bdev: The block device to read from. + * @block: Block number in units of block size. + * @size: Block size in bytes. * - * Reads a specified block, and returns buffer head that contains it. - * The page cache is allocated from movable area so that it can be migrated. - * It returns NULL if the block was unreadable. + * Read a specified block, and return the buffer head that refers to it. + * The memory is allocated from the movable area so that it can be + * migrated. The buffer head has its refcount elevated and the caller + * should call brelse() when it has finished with the buffer. + * + * Return: NULL if the block was unreadable. */ static inline struct buffer_head * __bread(struct block_device *bdev, sector_t block, unsigned size) -- 2.43.0