Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7546942rdb; Wed, 3 Jan 2024 22:50:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IG72HEHq0wvSNHw32B3LeioAfCelOvgWDsawgNW+66SPAtQWJLuQ5NUCgQKmJBGHAiamyU/ X-Received: by 2002:a05:6402:557:b0:556:9d91:c7e6 with SMTP id i23-20020a056402055700b005569d91c7e6mr72378edx.21.1704351053897; Wed, 03 Jan 2024 22:50:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704351053; cv=none; d=google.com; s=arc-20160816; b=fQpHHOjJD+CLs7TPfbzdpMIacfwWq/guy7oUNdT4uUL2c1422Zbjl8qhzjxe4zXgU7 Gx39jml78SrPqzjzjtXdBvlY3c2p1uklilCh4UHWlhnqfRaA8aLJMQBzDwC6HO+e+bez 67PpDkeGzJUCr9YHGwvaVfVYO5hcSV4z/fv7you5gH8ZSW4wlaEWOgQ3G/1cMBAHs5um M6s2AS2BrRUiPgljdQBYPryS01KCyDm5imQn3jdzbx75BrxJzoe3fBcCYfqGH+PxHVtE U1FS4bGoKZtt9AQGE4BY+br24CuTuJKZm2Uw3oAxWfuJgHqBFrB8A6yaLuboa5hle5cY w7jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=WpzlZXPPpzZxch1Zk0/qhu7SF82JELdeNtCuSvfbQCQ=; fh=wEwVsh3t37hB6QqenHMG8S3Ozr7ydhZQ51AsJDmWKQc=; b=XbjFrofxhxvSgp/QScKXBn/z4Oqwk6LagJQDLvuR2nvpKytQ+ZPSEy7vHyNH+ve6mc wxOjKYgNwQ4ZO5zqfMIMsR1pGB4WVBdRsOlLOgFFJY3+THnrWQ0qdWM9UXG1DK6NCfI0 C93YkJeGf1bgQSaTEv8XhYmt9TvAs4CJgVOz+J/PY2cmbRMNa6tQmoEp8NjOv8CSyc0N thE9TVY3QoPYbKTyj1uoGaH9nuYQfRwiVnBF4MLk+ek5DRSKMFOsq9E29EkxJuHk98+J sWy70A9tufW7Gvoso6dVVxbq4vyJ9U1U0rUBPYZ0iVSTMbd5numYQwlnfVzOLwNK9fQb 8ksg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-669-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h10-20020a05640250ca00b00551abfd2418si12427152edb.657.2024.01.03.22.50.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 22:50:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-669-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E641F1F25A1B for ; Thu, 4 Jan 2024 06:50:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E5881EB3E; Thu, 4 Jan 2024 06:50:33 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BD4A1D68E; Thu, 4 Jan 2024 06:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4T5HK51dvmz4f3kFB; Thu, 4 Jan 2024 14:50:17 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.128]) by mail.maildlp.com (Postfix) with ESMTP id 867321A0AD8; Thu, 4 Jan 2024 14:50:20 +0800 (CST) Received: from [10.174.178.129] (unknown [10.174.178.129]) by APP4 (Coremail) with SMTP id gCh0CgAXcEArVZZlGBdpFg--.12294S2; Thu, 04 Jan 2024 14:50:20 +0800 (CST) Subject: Re: [PATCH v2 2/9] ext4: remove unused parameter group in ext4_mb_choose_next_group_*() To: Ojaswin Mujoo Cc: tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240103102821.448134-1-shikemeng@huaweicloud.com> <20240103102821.448134-3-shikemeng@huaweicloud.com> From: Kemeng Shi Message-ID: <7a7df602-37b1-d134-ec51-7dba26f72213@huaweicloud.com> Date: Thu, 4 Jan 2024 14:50:18 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit X-CM-TRANSID:gCh0CgAXcEArVZZlGBdpFg--.12294S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Gw15CF1rAFWfKr17WryfZwb_yoW8Jr13pa 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14PM +0800, Kemeng Shi wrote: >> Remove unused parameter group in ext4_mb_choose_next_group_*(). > > Hey Kemeng, > > Just a small thing, the parameter we are removing is "ngroups" rather > than "group" so maybe fix that in the commit message. > > Other than that looks good, feel free to add > Thanks for let me know. I will fix it in next version. > Reviewed-by: Ojaswin Mujoo >> >> Signed-off-by: Kemeng Shi >> Reviewed-by: Jan Kara >> --- >> fs/ext4/mballoc.c | 12 ++++++------ >> 1 file changed, 6 insertions(+), 6 deletions(-) >> >> diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c >> index 9f9b8dd06..765b62729 100644 >> --- a/fs/ext4/mballoc.c >> +++ b/fs/ext4/mballoc.c >> @@ -870,7 +870,7 @@ mb_update_avg_fragment_size(struct super_block *sb, struct ext4_group_info *grp) >> * cr level needs an update. >> */ >> static void ext4_mb_choose_next_group_p2_aligned(struct ext4_allocation_context *ac, >> - enum criteria *new_cr, ext4_group_t *group, ext4_group_t ngroups) >> + enum criteria *new_cr, ext4_group_t *group) >> { >