Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1674625rdb; Mon, 8 Jan 2024 06:58:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFH3enLfUy/fW+h4tiJf6+a3yILw1JJgahI6CXphl7T9jT4yXRqsDZ/esCas21MQN/QrWqE X-Received: by 2002:ac2:5e39:0:b0:50e:b5e5:bc4c with SMTP id o25-20020ac25e39000000b0050eb5e5bc4cmr1328772lfg.50.1704725906228; Mon, 08 Jan 2024 06:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704725906; cv=none; d=google.com; s=arc-20160816; b=C7GEA1IS7RnUKSF2jUkJEb4yE26G2pntwsWL2BzbuwkJV9W057/2EKUuTF9flM2iEP t0A92XX61TWeEvRCWMcYjcSEhj7otX/uF43ceoeaTzyTd4U4llH9UFdNTp7ZSP1z+jcu lCtSkDgWcOZHRAoAVg1wgvtdAVHIuLin47IGd7fUsiTSBZm3P4eqqarAGcxZzryrZ3QF QdnLgX2mBZuKOEyidNNLYbxZdvcEl4Ei9wJyfQK0NcZN1x9RADb6hbRlR4EfFcNIVvjU xVXaIz9RmwW8UZrHmE5jajNAL86tIbu5uYkM4aSsfEtHhctCyJ6RZpZ3zV70GmnKeCDv ZHmw== 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=XcOQZGwoIn5kkIIANZy6IMFdl96tzX2varVM4O162Fo=; fh=j6FpqJpM0r3X0FI6D2tp0sm/9F0dpzvQ5GLWJ5myoXc=; b=pbOmt18tThqqhYc6sB+KkJtFQc5dc6rer8uIDOkD7CnprivbXPNSMdbjl4vwYWPie7 XQ5Vq7E7J/M5ItWma6Dv3GJQLA7uYht4FoGXzpqaiDVYDCViZ87Up341Y+ZfIKrbq/J3 RvXezG04bB602EkKo1cGMy5VAAoQctMiChXmu1ovGy6b96GcY0EDtbFUUB99hTJuOteN dRkzsJ7bGFQ1EEAlPoIPoLGujXb03LJEX3CmXUuKRRaHpdw/U8lotCCfk0jBv0i+lxLp PvNRQmEoGC/84ibKer5PB4n2W/OMIJ26GCiijtfkC4UB+LqVZKL4MwOMgpq6gwA8SgOf 5Z0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=FIDDlGFi; spf=pass (google.com: domain of linux-kernel+bounces-19728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19728-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o14-20020a1709061b0e00b00a28a73c3711si3213337ejg.968.2024.01.08.06.58.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 06:58:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=FIDDlGFi; spf=pass (google.com: domain of linux-kernel+bounces-19728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19728-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 am.mirrors.kernel.org (Postfix) with ESMTPS id EE0BA1F23477 for ; Mon, 8 Jan 2024 14:58:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F013247A44; Mon, 8 Jan 2024 14:58:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pankajraghav.com header.i=@pankajraghav.com header.b="FIDDlGFi" X-Original-To: linux-kernel@vger.kernel.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (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 796FB47780; Mon, 8 Jan 2024 14:58:14 +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-202.mailbox.org (Postfix) with ESMTPS id 4T7xyB4mGJz9stX; Mon, 8 Jan 2024 15:58:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pankajraghav.com; s=MBO0001; t=1704725890; 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=XcOQZGwoIn5kkIIANZy6IMFdl96tzX2varVM4O162Fo=; b=FIDDlGFi0sWUUnrGD2rmZC9aAqhMgwM5lu8ol3DXN622el7ZATFZLhCpM3E0W/YFMyYuL8 wsg1XoctGiwuWF/AM50FTF9zZnK+nHHcDlc2ZKOyXWhYXbJHqyVGcqdZHkF5fWui3qBlEu xwYNLMvTgcu4o5NUB/l05Z6K5szJ8NDTejBq8w+tHOaHlstgjqh1+Lnc4xKURQj1ct+XJN 6oMqxVs2Mp1BUPDIUPZX0/Lleol501Fho/av5i2f+MDZVLuOVB5ovOtv11+GejB7032ZF8 cLjVynM37Ut1+pxqXd/bGmMtNq3KVtJFCm5zKxDIVNcv8eatzUBLkMBWQhbgyg== Date: Mon, 8 Jan 2024 15:58:08 +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 Subject: Re: [PATCH 4/5] buffer: Fix __bread() kernel-doc Message-ID: <20240108145808.2k4rob3ntdknrkp3@localhost> References: <20240104163652.3705753-1-willy@infradead.org> <20240104163652.3705753-5-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: <20240104163652.3705753-5-willy@infradead.org> X-Rspamd-Queue-Id: 4T7xyB4mGJz9stX On Thu, Jan 04, 2024 at 04:36:51PM +0000, Matthew Wilcox (Oracle) wrote: > 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. > It looks like __bread_gfp has the same problem: diff --git a/fs/buffer.c b/fs/buffer.c index 967f34b70aa8..cfdf45cc290a 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -1446,16 +1446,18 @@ void __breadahead(struct block_device *bdev, sector_t block, unsigned size) EXPORT_SYMBOL(__breadahead); /** - * __bread_gfp() - 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 - * @gfp: page allocation flag + * __bread_gfp() - 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 can be allocated from non-movable area - * not to prevent page migration if you set gfp to zero. - * It returns NULL if the block was unreadable. + * Read a specified block, and return the buffer head that refers to it. + * The memory can be allocated from a non-movable area to not to prevent + * page migration if you set gfp to zero. 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. */ struct buffer_head * __bread_gfp(struct block_device *bdev, sector_t block, (END) Another option is to just change this in __bread_gfp() and add a See __bread_gfp() in __bread()?