Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2297550ybt; Fri, 3 Jul 2020 05:56:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXvKI+HWJ2g57AaTNXFQCm53hPpDNfQJh0dbfYOAs1AFUzrYm/4W40rjc3jE+wD7LA7hvL X-Received: by 2002:a50:ee07:: with SMTP id g7mr25428433eds.320.1593781007365; Fri, 03 Jul 2020 05:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593781007; cv=none; d=google.com; s=arc-20160816; b=nLa1EMZnHm2M0dEGXaXOxN0NLOAJEDr4lyJHco0JDyQ67MBG26WMjIcs+0tE6s+pG3 SUDQb187KXMdhDFuFeS08oaiQ4rqHYvanil4Qtsq0Bi3yXXkTKDaXAEmWBk/0DkHP+/N tiWuUYGdC9k+lz7yaFXvyXVjn60HwYH8EF9xQTvQmSnAkMsIdx76PZSV+wZ9t4npljST 8oK/tusJJoXwpyI+XWLslbHme3u8wzsfSN49z3jeEU52PVoWOxTTkdwjThPGmLwBpGlG b20V/yR0cvNy5Oz7Ta8qDZ9K1pC3cydShG18cZIcipWy3roo7ZGH/nXITqIrTbPUKl67 R0vg== 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=/pjmE+3WgOPldA7/m1xMgfhxeMUr+4kwKYjFW9tyJpM=; b=Nr2tPUObMQ0dXqIR7ENba1+aHMPoKxRCjT6KYz6h+M5iDls8X6xDl5uHzUQ18qJYFz MMfvfbk5hCe/0QGtIjRVGVXP2tRyQeqQA+tpW6WLhArHV1Poz3eNcbKqBLsuWk/A9PyZ lb2PNYtVrv38f8n6r1K6RKhn4lH2DuIDcumT6aP4bSSFGpnBAA/sMwfi7o5O3eP91Rqb FM956+/OLlnLF95zKqfJTgvuoqSYef43HON4v1ItkFSLbH3JGNyU/+Nw1VlU/Wl3DNLy uIuv7zFzvr5GUeStkopbGhBLVRlMlNcIHEAif8gdmwhA0P6hljB7OHn0RnVMPH/mrHcB NGxQ== 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 ce16si8149108ejb.436.2020.07.03.05.56.18; Fri, 03 Jul 2020 05:56:47 -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 S1726245AbgGCMzn (ORCPT + 99 others); Fri, 3 Jul 2020 08:55:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:49006 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbgGCMzn (ORCPT ); Fri, 3 Jul 2020 08:55:43 -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 C09CCAD1E; Fri, 3 Jul 2020 12:55:42 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 3495B1E12EB; Fri, 3 Jul 2020 14:55:42 +0200 (CEST) Date: Fri, 3 Jul 2020 14:55:42 +0200 From: Jan Kara To: Chengguang Xu Cc: jack@suse.cz, linux-ext4@vger.kernel.org Subject: Re: [PATCH v2] ext2: fix some incorrect comments in inode.c Message-ID: <20200703125542.GA21364@quack2.suse.cz> References: <20200703124411.24085-1-cgxu519@mykernel.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200703124411.24085-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 Fri 03-07-20 20:44:11, Chengguang Xu wrote: > There are some incorrect comments in inode.c, so fix them > properly. > > Signed-off-by: Chengguang Xu Thanks, I've added the patch to my tree. Honza > --- > 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, > * @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. > + * return 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, unsigned long blks, > * ext2_alloc_blocks: multiple allocate blocks needed for a branch > * @indirect_blks: the number of blocks need to allocate for indirect > * blocks > - * > + * @blks: the number of blocks need to allocate for direct blocks > * @new_blocks: on return it will store the new block numbers for > * the indirect blocks(if needed) and the first direct block, > - * @blks: on return it will store the total number of allocated > - * direct blocks > */ > static int ext2_alloc_blocks(struct inode *inode, > ext2_fsblk_t goal, int indirect_blks, int blks, > -- > 2.20.1 > > -- Jan Kara SUSE Labs, CR