Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1336743ybt; Thu, 2 Jul 2020 02:57:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4gHA9+V8bwsCatfuKCIXSSFoi4e8I0nbyy+rUPZMzf0JVSfgad012IkHB4thS9dZrG9Uq X-Received: by 2002:a50:fb93:: with SMTP id e19mr28365870edq.106.1593683855594; Thu, 02 Jul 2020 02:57:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593683855; cv=pass; d=google.com; s=arc-20160816; b=bA0exMaHb3GXrqdXYUfCbkWVKvTrDN6VIm3FkFuMxg0l+JbYxH0FLPABWsinAsYtbP Hx2Cp1GO+Mi9hsOkw7uoifCbI2gWJZp2WH0NytWEXe3HegC5JwevlifrJGEfSbQbnz8q j5BjPv90DpGcfpT5Lq7cdpcHIvby3ENClyMeYO97XyYdVSMiECAR1up5zGOEk1JSUwms 7zBYwphBF5UKaHRe7cb2+XvqglCojw1RCFYNaS1yb3X7kK5pZk/N396T2cK8mOzNIhwY qV1likNKma4Hc4ZfaK3JYnC0/hnmHz0LaXzPGrZKSfv1mR5p1Mx7P9LCBYruLk5LPJe5 Y+9w== 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=Z1ka1j05ciHgcPs3j7u1x6fnqixZkAqedO9cZgmJrmU=; b=zensVXPabIvvdTv/sGDL21Q8tBM6ScmUtdsSo92Gc+1/K8rMvpekKAsLkWPCpMgCx7 WOYB8NXsvzUM0+rTl8aPZP2g5Valg2s0pVRxT0686dC/UDaOsc+DtStY5fwaSGxfykyV BI6wW0L/26vumhJmRW2NxDCtxnWPocPxxlJM9zFQa6twfRNLLn1t6hgvsAVE6A7ukXaj KCmCwQCb+AVwsNh0lWBXtIn8oPbxtQhpkuLX9M7HnwFuYra1L2ZxNOmYk7KbUhGeHzCs 2sI2mAqnCv+YmncTodBSNdWNa69kc5XT+GJp0Uzx2p6zo8GaL9owDH3Eafu3HeB2jSMz /xkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mykernel.net header.s=zohomail header.b=VQ5M0PTw; 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 h4si5429155eje.121.2020.07.02.02.57.03; Thu, 02 Jul 2020 02:57:35 -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=VQ5M0PTw; 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 S1726805AbgGBJ5A (ORCPT + 99 others); Thu, 2 Jul 2020 05:57:00 -0400 Received: from sender2-op-o12.zoho.com.cn ([163.53.93.243]:17035 "EHLO sender2-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbgGBJ5A (ORCPT ); Thu, 2 Jul 2020 05:57:00 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1593683809; cv=none; d=zoho.com.cn; s=zohoarc; b=gMBLrAphsYQ31KK/4lyoZoIdmCb/n1cU21y8gOW3QNmQWqZKSkbnEsEmr4divBl/NMDQ1i5vNjWxIPbE2xamsfl41bZDfTzWHTgHEXuZvUw0MajN/WVUHM+oQuYzx090AN1oXDqLF2kXlfuUlI5hO2RV6+svgAwSrDRsrwfiXW0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1593683809; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=Z1ka1j05ciHgcPs3j7u1x6fnqixZkAqedO9cZgmJrmU=; b=TWADfK3g3da6VHVS/YzK1UrkzTjP0oXTegQL7SE5pYY2a2vVRvZjlB87HUaZItqNjr3Z6LdRTt3y3XqOXbLayE5ckji5n9KiiW8f9BzPBrxXRpIxeYxFZepj6ldinHQtqyslTjZHr6ta5JVAtHnB9S/heuqi7EGkv0vEujFrEd8= 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=1593683809; 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=Z1ka1j05ciHgcPs3j7u1x6fnqixZkAqedO9cZgmJrmU=; b=VQ5M0PTw7uKA9gS3igKrVzWTJL+Uzw9Ld1J1I4Hs34CUBjwhJabU3EdOOB50gOQV rEdRyD1/TwLKZ+VGPF4NWswEkAf9Yu8yS8DBeglyrdX5ne3LKy2IVF6580WRSF5EmbP D5+TXqxWYmeQwnAFmIpx/1FEMy96RUF1XjMud6bk= Received: from localhost.localdomain (113.116.50.61 [113.116.50.61]) by mx.zoho.com.cn with SMTPS id 15936838075831016.6098749097517; Thu, 2 Jul 2020 17:56:47 +0800 (CST) From: Chengguang Xu To: jack@suse.cz Cc: linux-ext4@vger.kernel.org, Chengguang Xu Message-ID: <20200702095636.29246-1-cgxu519@mykernel.net> Subject: [PATCH] ext2: delete incorrect comment for ext2_blks_to_allocate() Date: Thu, 2 Jul 2020 17:56:36 +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 ext2_blks_to_allocate() only counts direct blocks need to be allocated, return value does not include indirect blocks. Signed-off-by: Chengguang Xu --- fs/ext2/inode.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index c8b371c82b4f..4df849e694dd 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -355,9 +355,6 @@ static inline ext2_fsblk_t ext2_find_goal(struct inode = *inode, long block, *=09@k: number of blocks need for indirect blocks *=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. */ static int ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, --=20 2.20.1