From patchwork Wed Jan 3 10:28:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 18658 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4796035dyb; Tue, 2 Jan 2024 18:31:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgl3m7zbFyYzeNpbTv8Y1g6GeqKNHO53TCUfqCZwpUrWlbWEuZzf1hmYJWWwC0eqW4AM4f X-Received: by 2002:ae9:e016:0:b0:781:d519:12b5 with SMTP id m22-20020ae9e016000000b00781d51912b5mr2586066qkk.102.1704249091218; Tue, 02 Jan 2024 18:31:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704249091; cv=none; d=google.com; s=arc-20160816; b=OchjOqHpk1RKOimReYQmex/lHNn+gNKDyWZZMw1kyS5hCoajpPhEtGGun9SXLbq0Gl 5ReTEJvJ7KAQts72g5cqPoxw5i9MOQAqgwlHjPaIk9vrUDFgnNUrX6yBvW7xFc7DZRRD xKvJM7q5UjSsaLzSnyND7dBwu5f4s5pXL9B99YwmODKMnwfA32DFgOYygKKX35wfbCOA A3rRXFgblWzyAXG2diHc871twEaM1LVR/5fSLrQAFt/RNpFXKtmC3XWcRG/04cyEBbUu MPs+WhVoJ9tgboPnMWk+Z5asf/g6cAM5/Y5vrwashPnlqxGPaefg0HkAbbWHOl/qsmA1 tNmg== 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=RLtYKs7kah5dy9OvkWDOMOkbdRyCGMmYVtBn/fb78CwVKdFgI8/N7LUfdRQqgapR7/ oM/R4dA+PfigWwOTJzMlCwxX6939qj9/t8jUOAvO83L3AdvNoSPr4uyb1LvPk28555AJ XY6crbfqBT8R9aJFrBv9ZwjM2/XXKDtIxjzCYBCVUVE8z9Jhab6tACdUCrOny0Fy0zaz MibpLh/2IVnszqAUr28I6yoxtxJk0K0pmoOM2Ej7uOZbA7j/+PgrKZIwpoNwp6MZLbTw zOdZbrNiXGGp/cBYHSHhRQQGoLas0xHdd8eX5AVEZBylLjyw+5bewa6MHfO5shbLr7K/ bAhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15072-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15072-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y8-20020a05620a44c800b00781b57db972si7240045qkp.311.2024.01.02.18.31.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 18:31:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15072-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15072-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15072-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 05B2D1C21B5B for ; Wed, 3 Jan 2024 02:31:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D5DE179BC; Wed, 3 Jan 2024 02:30:23 +0000 (UTC) X-Original-To: linux-kernel@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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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/ X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787034695004551854 X-GMAIL-MSGID: 1787034695004551854 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(-)