Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1787064ybb; Sun, 29 Mar 2020 13:24:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuskAPrz2W0VnjvklngVbhXmuN21IHe5goNuqOBcoMaikmVZE5WyuLiPoezxy20BzXrjB4e X-Received: by 2002:aca:b441:: with SMTP id d62mr5877903oif.107.1585513465849; Sun, 29 Mar 2020 13:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585513465; cv=none; d=google.com; s=arc-20160816; b=ZDbDfML52pFpfTRutwtVLfTmms3Jo9xgvGt/pmB9jnKDi5LsAwGBNGW7yq2t1d2UWT DBc8wLCJQX7naE1KyqVt00y/0e23zxV0V8yYrAob2uUdIOU0FHYz6JW743Jrq/44wTsN MKs52QccFhLzNO4WW12umF79Fq/5wfsFgNFsPYnPNBzIH0jbrNA1gDq8rGts79mxgk05 zrzc/+akTLYIhxp3dQd65LHTKHFkLNNxkAWkUqYqepNVqH9V9n2nsRQwi7P/WPw/oy40 WECelMlS9aquHkQ2w5MmxRaG87JLfm5kGWkForadMvVVxzqT9hsP3zEXEOG8Au6l6PX4 Fjzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date; bh=lSSK+rUZjjGSF3Ji4r1XTNnuzpjVWTqrhc4GAzFpGco=; b=pY0xrmsuZVeEamuSiqKjiH90xlTRNZergjAPErhfN5G8+CL/GJ9H/kFT7U4KIcXYfw lwbFAXXbnhIJBLtvY2/Th2le+1Tzp+PC91R31PfgK7dOyVwI4vMQYPpOtNtYGy+KNwgQ JEo+8PKK7egBdF2RlcfTgjOqcM45KUaJB6uHq7cOK6RjaYJuOxu6m4M5fJPG8g8vePi4 aIfISY/EuN/UVJHfwQPC2ln+hq96Q71ZpvNcsSRoZrvkAlO0u0ZM/E0k96FRuJdCu6Ix ZmVjCYaSAHJw/JQ3x0hn1/Rn9rQIc9tQ5kReVhXjydLeu/IKGdCLZ0Zg5UxpzGNCAUBl 2WPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10si5466257otr.174.2020.03.29.13.24.06; Sun, 29 Mar 2020 13:24:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728481AbgC2UVz (ORCPT + 99 others); Sun, 29 Mar 2020 16:21:55 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:53763 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728393AbgC2UVz (ORCPT ); Sun, 29 Mar 2020 16:21:55 -0400 X-Originating-IP: 50.39.173.182 Received: from localhost (50-39-173-182.bvtn.or.frontiernet.net [50.39.173.182]) (Authenticated sender: josh@joshtriplett.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 6362E1C0003; Sun, 29 Mar 2020 20:21:50 +0000 (UTC) Date: Sun, 29 Mar 2020 13:21:41 -0700 From: Josh Triplett To: Theodore Ts'o , Andreas Dilger Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ext4: Fix return-value types in several function documentation comments Message-ID: <60a3f4996f4932c45515aaa6b75ca42f2a78ec9b.1585512514.git.josh@joshtriplett.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org The documentation comments for ext4_read_block_bitmap_nowait and ext4_read_inode_bitmap describe them as returning NULL on error, but they return an ERR_PTR on error; update the documentation to match. The documentation comment for ext4_wait_block_bitmap describes it as returning 1 on error, but it returns -errno on error; update the documentation to match. Signed-off-by: Josh Triplett --- fs/ext4/balloc.c | 4 ++-- fs/ext4/ialloc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 8fd0b3cdab4c..9a296008cf90 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c @@ -410,7 +410,7 @@ static int ext4_validate_block_bitmap(struct super_block *sb, * Read the bitmap for a given block_group,and validate the * bits for block/inode/inode tables are set in the bitmaps * - * Return buffer_head on success or NULL in case of failure. + * Return buffer_head on success or an ERR_PTR in case of failure. */ struct buffer_head * ext4_read_block_bitmap_nowait(struct super_block *sb, ext4_group_t block_group) @@ -502,7 +502,7 @@ ext4_read_block_bitmap_nowait(struct super_block *sb, ext4_group_t block_group) return ERR_PTR(err); } -/* Returns 0 on success, 1 on error */ +/* Returns 0 on success, -errno on error */ int ext4_wait_block_bitmap(struct super_block *sb, ext4_group_t block_group, struct buffer_head *bh) { diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index f95ee99091e4..86a96dca9ebf 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c @@ -113,7 +113,7 @@ static int ext4_validate_inode_bitmap(struct super_block *sb, * Read the inode allocation bitmap for a given block_group, reading * into the specified slot in the superblock's bitmap cache. * - * Return buffer_head of bitmap on success or NULL. + * Return buffer_head of bitmap on success, or an ERR_PTR on error. */ static struct buffer_head * ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group) -- 2.26.0