Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2197771ybt; Fri, 3 Jul 2020 03:22:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNq+NNoXs+poUzFMsMuHXaaqiXyCqXpWRRhXMYlU4U14YPG+/5Qmwxq5yVTUyTw7AkQgb4 X-Received: by 2002:aa7:c808:: with SMTP id a8mr37864140edt.259.1593771726378; Fri, 03 Jul 2020 03:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593771726; cv=none; d=google.com; s=arc-20160816; b=si3vxfck1ohSjUwt3dfHFJ+OlYzvkxa9LizTgWX72UmLyaBlJy8jVHT4Ljv7ndPtFv lah6g7w+c0LuH9K24bTVybAq6VIvhCFRk0PvHk+TtLXLF/fMgaSATKJsGpS/ZDOk4srI WbGt0opRurZoSh7Go1maO5EDcUq1TnAQxwPEVbZFphSs1BdZAlm62A4Q4vCol/DSikOi GyCEROyhFfiGqrplNickaVwHwfbacza25RPZaOdnKS6BgK/FSmV2dZiiT8+2dlT1r9Cj s/ZjHFJPFohyejvIi6d8Cr0HV8Zm/Uzm6hMe2V8rnXDrKumC1RF8xN+UNdSSSP27kM17 2JsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DirkSKIVITzJLmGmSNTAfa+WA4WBioW71cIAV1kHfF4=; b=t8JZpEb/zp5rvC87gDLtQ2JC1Efd7IzMVkOJdOXlNPyJ9tBfdPX4Ff3qVrWwMkZmJ4 s3PJR96+XUIKcXMq1wu9tD3dsSglJMiFSC1+ZMgKY+5L209YTRl5JAnkDWA4FWT/2Ho0 TuxnNF4QKwK3LBZ+1xvU2pSpVxJ03FKJECtlSO1sHoLyefoAqPceCXAA/3T98UVRuBnR i06qXPmaKrIJfIp/PT3etjo7SeK/GOhlucIlkqxjx2Ue2871H7BN1Elb3SkypB7bvqah q2qeGIE99ihmC3RiMkbvuMCoVKdlz2V4wH5Jq0AMOx2olTWU7Mf+ubtJBfQAnvBUt17t gDNg== ARC-Authentication-Results: i=1; mx.google.com; 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 b4si7741574ejp.333.2020.07.03.03.21.12; Fri, 03 Jul 2020 03:22:06 -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; 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 S1726063AbgGCKU1 (ORCPT + 99 others); Fri, 3 Jul 2020 06:20:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:58210 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbgGCKUY (ORCPT ); Fri, 3 Jul 2020 06:20:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A68EAB8D2; Fri, 3 Jul 2020 10:20:21 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 085591E12EB; Fri, 3 Jul 2020 12:20:19 +0200 (CEST) Date: Fri, 3 Jul 2020 12:20:19 +0200 From: Jan Kara To: Chengguang Xu Cc: jack@suse.cz, linux-ext4@vger.kernel.org Subject: Re: [PATCH] ext2: delete incorrect comment for ext2_blks_to_allocate() Message-ID: <20200703102019.GC4355@quack2.suse.cz> References: <20200702095636.29246-1-cgxu519@mykernel.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702095636.29246-1-cgxu519@mykernel.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu 02-07-20 17:56:36, Chengguang Xu wrote: > 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, > * @k: number of blocks need for indirect blocks > * @blks: number of data blocks to be mapped. > * @blocks_to_boundary: the offset in the indirect block > - * > - * return the total number of blocks to be allocate, including the > - * direct and indirect blocks. You're right the comment is wrong but instead of deleting it, I'd rather fix it like: "Return the number of direct blocks to allocate." Honza -- Jan Kara SUSE Labs, CR