Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2290351ybt; Fri, 3 Jul 2020 05:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn99KJ3xk0aSN0npOV0dHvKp2AkLUB6sJ4T/8GCy0MxMXqQBbj+jrLRmz12gQsAOxQ/hkZ X-Received: by 2002:a17:906:2cd5:: with SMTP id r21mr30991347ejr.20.1593780309556; Fri, 03 Jul 2020 05:45:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593780309; cv=pass; d=google.com; s=arc-20160816; b=tIFwQUpmVPZPeWnydTHwtGyrNpk31fNVi5PY8VoHeANzryECfNEKGl/rBzXtILU1qD 3PR9HOp7du7uWMYgvqvtAbva42WxYEHsVtTnV/kTBgSlXW8ixjbp9sYP44Z7Q1OUfYO2 c4yJGz4CEGIxElZfHqXIMv/TUaVrQhOmXeJqqHLrCVMrCLUN1TDJWvD6LxN3i3byBKsD I8DcQDas+jPUktxV03CuOPwD/kGg8hxMvtN2f6iuAbFJ4+xahsz9v6q+bBVIk5BNHIcL Qgd73iVg/lA5C2nM0eqwPPCTYmNowrGw5Aj3p7jzD4cD5+z5dFxlD73LhR0rIkGAng3X zYSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:subject:message-id:cc:to:from:dkim-signature; bh=+776UubO9xKJt11T+eSR9elk68neOsQ3ppNGtaERMqQ=; b=qIOjQujzxrsGq7Do6SE+Pi/NkoQnhnURh8c1fu1zqXgzH4iQpFw0YJd5Fxt8FtJbxQ L6uGfLHboh+3ROl4/KnTncQr3VIQb/w5h4FhzW8PMGjrj5G+i6Ukrk4utQlTYeSFcTuv FgGRLhJR1T9fxx+0tjd6KZbXXyNBC7zc6mWHewfJC/sr0Km53haF2XkZrng4qy4Nw2Sr F/iMy/h+EWPg6+KOV3dfTea5vX1CEWxMiPm977i4Fm1zoC8iLrfH8EUc5MgSrztx2WFt YgjVnB6cHQYPXJCl07g0sIuNo/z6Uhv9lsya7ekcgbEQwS0CQ1AKdC+C1RN9pa3QKRrd gM5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mykernel.net header.s=zohomail header.b=TvLIdDv+; arc=pass (i=1 spf=pass spfdomain=mykernel.net dkim=pass dkdomain=mykernel.net dmarc=pass fromdomain=mykernel.net>); spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by19si8276221ejc.417.2020.07.03.05.44.35; Fri, 03 Jul 2020 05:45:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mykernel.net header.s=zohomail header.b=TvLIdDv+; arc=pass (i=1 spf=pass spfdomain=mykernel.net dkim=pass dkdomain=mykernel.net dmarc=pass fromdomain=mykernel.net>); spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726074AbgGCMod (ORCPT + 99 others); Fri, 3 Jul 2020 08:44:33 -0400 Received: from sender2-op-o12.zoho.com.cn ([163.53.93.243]:17092 "EHLO sender2-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726022AbgGCMod (ORCPT ); Fri, 3 Jul 2020 08:44:33 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1593780262; cv=none; d=zoho.com.cn; s=zohoarc; b=awtWHkX2Gtor9cBp6VKzs01aIwf+1O4lmxp3jQQP6oA2sx7SnYKF7SsfQkJmjoYXeJJKDdbZUWYv4/ZZhJGksACPgpwRi7QFy6INCq2X+BUy0sZjYT9fhHi2W6VM9zlT25gG/ZKY1mrUtnnEyFGK0KLLM3lyhk32wZ8u+VKM2U0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1593780262; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=+776UubO9xKJt11T+eSR9elk68neOsQ3ppNGtaERMqQ=; b=os9VZ9upSJo/phguRmS20WaUBhtyCwH8JyopWxYDsqDBjRXkL+bZ2/Cl6fbj9seK559XVQWcUtTm8Yc10MWaFxZzkNZfHawWzMa69ZRzpiOpnt2a5QDCdttJDaTXT/p1NTRIfnCU1HZPW0AFncwekK3zfl8gGNLQ7rs21bBe68Y= ARC-Authentication-Results: i=1; mx.zoho.com.cn; dkim=pass header.i=mykernel.net; spf=pass smtp.mailfrom=cgxu519@mykernel.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1593780262; s=zohomail; d=mykernel.net; i=cgxu519@mykernel.net; h=From:To:Cc:Message-ID:Subject:Date:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=+776UubO9xKJt11T+eSR9elk68neOsQ3ppNGtaERMqQ=; b=TvLIdDv+5UUoIFaKCJwVTRbUNMyRFpkHblhgqY4/JjlwJGJ5upcyY+yBc4mckxMV 0hohHkwQfCqduIybWP/4MCVpoOuv9HH0Fu6tFl60tettAuwEjpbt6pDtX6wo+5w5p/6 qjITjachKr4x/CKeOmwEHwo1yYjUjUSCwm8qd9wI= Received: from localhost.localdomain (113.116.49.35 [113.116.49.35]) by mx.zoho.com.cn with SMTPS id 1593780261497449.6164064847354; Fri, 3 Jul 2020 20:44:21 +0800 (CST) From: Chengguang Xu To: jack@suse.cz Cc: linux-ext4@vger.kernel.org, Chengguang Xu Message-ID: <20200703124411.24085-1-cgxu519@mykernel.net> Subject: [PATCH v2] ext2: fix some incorrect comments in inode.c Date: Fri, 3 Jul 2020 20:44:11 +0800 X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoCNMailClient: External Content-Type: text/plain; charset=utf8 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org There are some incorrect comments in inode.c, so fix them properly. Signed-off-by: Chengguang Xu --- v1->v2: - Fix incorrect comment for ext2_blks_to_allocate() instead of deleting it. - Fix incorrect comment for ext2_alloc_blocks(). fs/ext2/inode.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index c8b371c82b4f..80662e1f7889 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -356,8 +356,7 @@ static inline ext2_fsblk_t ext2_find_goal(struct inode = *inode, long block, *=09@blks: number of data blocks to be mapped. *=09@blocks_to_boundary: the offset in the indirect block * - *=09return the total number of blocks to be allocate, including the - *=09direct and indirect blocks. + *=09return the number of direct blocks to allocate. */ static int ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, @@ -390,11 +389,9 @@ ext2_blks_to_allocate(Indirect * branch, int k, unsign= ed long blks, *=09ext2_alloc_blocks: multiple allocate blocks needed for a branch *=09@indirect_blks: the number of blocks need to allocate for indirect *=09=09=09blocks - * + *=09@blks: the number of blocks need to allocate for direct blocks *=09@new_blocks: on return it will store the new block numbers for *=09the indirect blocks(if needed) and the first direct block, - *=09@blks:=09on return it will store the total number of allocated - *=09=09direct blocks */ static int ext2_alloc_blocks(struct inode *inode, =09=09=09ext2_fsblk_t goal, int indirect_blks, int blks, --=20 2.20.1