Message ID | 20240105092102.496631-1-shikemeng@huaweicloud.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-17379-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5965539dyb; Thu, 4 Jan 2024 17:24:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGlMo5GCZmqTlHVYt9w2SOc76eqJ7odCkZ/AVsX8oGIoXwDwKl4oMs8ZT5iE4vdTbNiwB0u X-Received: by 2002:a17:906:2792:b0:a28:1fab:d394 with SMTP id j18-20020a170906279200b00a281fabd394mr769705ejc.44.1704417869512; Thu, 04 Jan 2024 17:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704417869; cv=none; d=google.com; s=arc-20160816; b=D0EJq6+SOLVFKh+O/bKp39iGkE/vKYOKzClFmgGtD98Q1gWF8eDYhJiKaImuXOr4lT YWiNrtdtVKROwf9/6giL5GxFOBGLYG/G27pXdbvwJwYuavQxIPtNG1u1qveuJlF+Duoz JOaCE2WHdg2/Q9HUruGe+wvLvAfrDHQ5m9A3VY+EMifkSDlj4TxX8CZI3UNENdfPoIiK vAbvJArK6EQMvd2966U+XoLgf63fi+7Is0DxksFk9ZlDVLx/apvrvzkQDmhcF8RKgPev 3yNr7RxegAHiPC1FzlJpEQxS9tJAkguGnKfzi0F7sNwLi5K1LljnY++/0Dsm27F1AA9v CkQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=hW+1+IIhp1ra+e/MDkQjAlhEc7Ot079QjvfJb5HSyyg=; fh=PiOAScoVKHwkMbfmvV1/7R62FPuyEpEVQGzFlL5CMdw=; b=fuHGLf/oipsKHe4wfa9+OYodsf2ZO6c7MvsgdYA3pkPM/2lxWPUuT1dKW9+oAkP/OK 2svCSEWAjP30KiCpP3LFc6WXXCeyF4ZEzX5sLBtJgvTK1dZuBz5R/t/OhfiiwUwCkFb/ 0+vdI3udRQCNcxCWa5mgdj7InlGVYTGhMPYut+iHNixkYnZEB0C+rFv65ntzNgIQrPJr 4BWs0yyATe0UVx/rR6eJi39zwdJ85hFWAWz9q6ypi7YI4EMLrXXW5+E/IUvAN7VwIeLj SVxwAP8xJEZ32UEq69+QDMUJqz8/ktULYKZyVidnylSivnyF1awvMfwvyDTCuey/mkTF snjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17379-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17379-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k12-20020a170906158c00b00a28e7106217si198405ejd.694.2024.01.04.17.24.29 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 17:24:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17379-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17379-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17379-ouuuleilei=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 1D9AF1F23149 for <ouuuleilei@gmail.com>; Fri, 5 Jan 2024 01:24:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59915613A; Fri, 5 Jan 2024 01:23:07 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) (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 B13D94410; Fri, 5 Jan 2024 01:23:03 +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 dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4T5m0y0dW5z4f3l8W; Fri, 5 Jan 2024 09:22:58 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.128]) by mail.maildlp.com (Postfix) with ESMTP id DA62B1A017D; Fri, 5 Jan 2024 09:22:59 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP4 (Coremail) with SMTP id gCh0CgBXZUXyWZdl68i0Fg--.35140S2; Fri, 05 Jan 2024 09:22:59 +0800 (CST) From: Kemeng Shi <shikemeng@huaweicloud.com> To: tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, ojaswin@linux.ibm.com Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/9] Some random cleanups to mballoc Date: Fri, 5 Jan 2024 17:20:53 +0800 Message-Id: <20240105092102.496631-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgBXZUXyWZdl68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wq5kxd4v5lfo033gof0z/ X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787211672254487167 X-GMAIL-MSGID: 1787211672254487167 |
Series |
Some random cleanups to mballoc
|
|
Message
Kemeng Shi
Jan. 5, 2024, 9:20 a.m. UTC
This series contains some random cleanups to mballoc. No function change is intended except patch 8 may fix a potential memleak if non-used preallocation spaces of inode could be greater than UNIT_MAX. More details can be found in respective patches. Thanks! v1->v2: -Collect RVB from Jan. -Remove 'needed' in trace_ext4_discard_preallocations. v2->v3: -Collect RVB from Jan and Ojaswin. -Fix commit message in patch 2. Kemeng Shi (9): ext4: remove unused return value of __mb_check_buddy ext4: remove unused parameter ngroup in ext4_mb_choose_next_group_*() ext4: remove unneeded return value of ext4_mb_release_context ext4: remove unused ext4_allocation_context::ac_groups_considered ext4: remove unused return value of ext4_mb_release ext4: remove unused return value of ext4_mb_release_inode_pa ext4: remove unused return value of ext4_mb_release_group_pa ext4: remove unnecessary parameter "needed" in ext4_discard_preallocations ext4: remove 'needed' in trace_ext4_discard_preallocations fs/ext4/ext4.h | 4 +-- fs/ext4/extents.c | 10 ++++---- fs/ext4/file.c | 2 +- fs/ext4/indirect.c | 2 +- fs/ext4/inode.c | 6 ++--- fs/ext4/ioctl.c | 2 +- fs/ext4/mballoc.c | 49 ++++++++++++++----------------------- fs/ext4/mballoc.h | 1 - fs/ext4/move_extent.c | 4 +-- fs/ext4/super.c | 2 +- include/trace/events/ext4.h | 11 +++------ 11 files changed, 38 insertions(+), 55 deletions(-)
Comments
On Fri, 05 Jan 2024 17:20:53 +0800, Kemeng Shi wrote: > This series contains some random cleanups to mballoc. No function change > is intended except patch 8 may fix a potential memleak if non-used > preallocation spaces of inode could be greater than UNIT_MAX. > More details can be found in respective patches. Thanks! > > v1->v2: > -Collect RVB from Jan. > -Remove 'needed' in trace_ext4_discard_preallocations. > > [...] Applied, thanks! [1/9] ext4: remove unused return value of __mb_check_buddy commit: 133de5a0d8f8 [2/9] ext4: remove unused parameter ngroup in ext4_mb_choose_next_group_*() commit: 438a35e72d09 [3/9] ext4: remove unneeded return value of ext4_mb_release_context commit: 11fd1a5d6423 [4/9] ext4: remove unused ext4_allocation_context::ac_groups_considered commit: 97c32dbffce1 [5/9] ext4: remove unused return value of ext4_mb_release commit: 908177175a2a [6/9] ext4: remove unused return value of ext4_mb_release_inode_pa commit: 820c280896ea [7/9] ext4: remove unused return value of ext4_mb_release_group_pa commit: 20427949b9b5 [8/9] ext4: remove unnecessary parameter "needed" in ext4_discard_preallocations commit: 2ffd2a6ad1d3 [9/9] ext4: remove 'needed' in trace_ext4_discard_preallocations commit: f0e54b6087de Best regards,