Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6892830rdb; Tue, 2 Jan 2024 18:30:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMRvY2Q5UET3MZLcyVcUINRrvUO4SB0ntvkP+iXLsn4v/Teo26LHLdvPpAcvGQcvReT7mm X-Received: by 2002:a05:600c:4f4d:b0:40d:6c96:950d with SMTP id m13-20020a05600c4f4d00b0040d6c96950dmr2172532wmq.33.1704249033835; Tue, 02 Jan 2024 18:30:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704249033; cv=none; d=google.com; s=arc-20160816; b=NwpzHQhnctodbjNTYYaQUREp57BVDv+T/nyvtqJOA8Wx+3Vh9I1mWS6+Tu8ro+vx6y hzWFQp0sZC+oweihlQZl4vZx665XVa/yoXB8IcBnCBEbk17mL/Q+2dZY5R6db2bSzpSA +vhMQ59V1AO/MT/Fz1n7eiIzayOOrGSOOsbNt0zyk6d0DsiURF/CuKUJfRcjCTcKcB+x TbQFJHtw5uAzWLzc6W1mBrX/9Vm8dV3ixm/cgTrynGFzJypS3aJ2upR3WWIxYHDoXXqS ny7S9VgHKzvgHXVc6CHJLJ9oOf/CN8ziadsL6fgIXI3qrOzmCQ/RwszDDQdFZRsGLdCT i73A== 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=NaaZS7dlf8ir8QItBtKPiqCdiIvl8AqZ6QMxFdH1/J8=; fh=PVTZvle0rcKMDcM85KYWZlzpBmGTOtilQClZ8dUG+Hc=; b=FMzxrP6/2n6+CE1PrIOnPoXnFdA5WPmF8wJtLH3UZjDQ9aQGKrWCqkE1qm3UNjzW3j SPrRmNvT3Wnd6wcoB2xCHR+mtUDgmyq/P5g5w6mksq5L1YJRmjG0GDpqDGzTjdqCfibf y7DKFrkBl0rDKMWXbwIZVTw0RP5SvrnmWlE6Uv0I0Tb4w5Zwss3ivZhfPmxhMS9wmX7I F0A6cbpQHYL0hDjqbgWQbl3u7d6icvOFJ3YRS4cckWt37DbAD6wQBpMHJvXLlAt5UiR5 IMUO2RAuAgdneaonqwwvp2OGRUf3YJCDqKdzLmRKpZPeHCWrQqPE/0S8OKs4oF72JpqM lRkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-631-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-631-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 fs1-20020a170907600100b00a2895257222si122084ejc.194.2024.01.02.18.30.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 18:30:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-631-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-631-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-631-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 7B4FB1F22B9A for ; Wed, 3 Jan 2024 02:30:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB35C4A13; Wed, 3 Jan 2024 02:30:21 +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 D1FC9186B; Wed, 3 Jan 2024 02:30:19 +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.93.142]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4T4YbT063Hz4f3l7R; Wed, 3 Jan 2024 10:30:13 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 457B71A088B; Wed, 3 Jan 2024 10:30:16 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP1 (Coremail) with SMTP id cCh0CgDX2A62xpRlYWmAFQ--.14269S2; Wed, 03 Jan 2024 10:30:16 +0800 (CST) From: Kemeng Shi To: tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/9] Some random cleanups to mballoc Date: Wed, 3 Jan 2024 18:28:12 +0800 Message-Id: <20240103102821.448134-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgDX2A62xpRlYWmAFQ--.14269S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Ww4xWrWrAr4xAF1DKr4rKrg_yoW8GF4Upr sxCr43Ww18Z345uFsrWw4vqw1fGw1xCFWUX3WSgwn7XFy3ZF1fGFsrtF4F9FyrXFW0qFnx Za12yr15Gr1xua7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k2 6cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M280x2IEY4vEnII2IxkI6r1a6r45M2 8lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E 3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26r xl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv 0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z2 80aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28I cxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2 IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI 42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42 IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E 87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j-6pPUUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ 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. Kemeng Shi (9): ext4: remove unused return value of __mb_check_buddy ext4: remove unused parameter group 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(-) -- 2.30.0