Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1722531rdh; Sat, 25 Nov 2023 00:13:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxBiT0LuiBmtHSQu1ge0w4k6qIRUImilYBVMQL2h+BivIq+Dy59nMt7Sz39uGkhVw/0tGt X-Received: by 2002:a05:622a:19aa:b0:423:6e9c:2de9 with SMTP id u42-20020a05622a19aa00b004236e9c2de9mr6978751qtc.17.1700900000491; Sat, 25 Nov 2023 00:13:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700900000; cv=none; d=google.com; s=arc-20160816; b=w0pLszHfqh66rRtRnkevjyfVm6Im5L3rKdfL/Xc4jWfZkgvPUO8b+ReTJRcOJ9l3Z+ e3Nrasav3bdlakd4Mhu4RqFTzIME/h6kb4rViILAy5+aq5Dp0PHXX0BH6ZLs9xXQZ8Ev /NsG/Z5ZUWaqio0DPLpQWJM3F7QPueiyOeFKX5bwLOZvwbKGmcBRJbuyvHntvKKZvhBv ovYFyXhup7U7+OB9DtEz7NqCF9lWYKwIUj0g9yyTWZV9OPdZIMFpIUzdT/2m8Ct8lrJT N6dEIJOeacniIJzOaw4v5X+WPEbm3jFYWOiBKwpqrQx6lJU/IjfAd2OnnglsNAUsyCqW AZzw== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=SKWz+Vco3zkcITnKeaVJa3JgHX70bSLpkXFzbwch73w=; fh=eu2llfKjKKC0QBUtW6YWJ13du6subP7SB8ZN6DjSWMA=; b=xLX8puZQjIfxvbxqWMg38OXu6e+NltRKnBis9hHB3fMfvBcIMoqLGBBtv7Rt17KPlk EvDVF+cG6c7jpzv+0ZUArxi3UwJAT+b7Y0Nsn0sYE/GJJipZowesNL/mmWYf0CrV9Frg d2SJ0bgvHetDST20E1rWl/gT9AFSVhFf3pTyDUCjQrtNSIK+v5Y4GNHsrsXYxkb1nBdo xdFccB9E1UExPOyPqLACDX13jdOrbbV5B7iOknK/kRAsguFNHISRCuQfeYq/3TuN/9gy iTj4avOKyZGh8skpjk4DXuTCVSWbYBckL0slmkHVrtwZOYC/6Y4bF5SU4G8koyzE7/Eh U0VA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-156-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f9-20020a05622a114900b0041092f38eeasi2062qty.434.2023.11.25.00.13.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 00:13:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-156-linux.lists.archive=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-ext4+bounces-156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-156-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 42A3E1C20B72 for ; Sat, 25 Nov 2023 08:13:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EDB1C129; Sat, 25 Nov 2023 08:13:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: linux-ext4@vger.kernel.org Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 322DB1701; Sat, 25 Nov 2023 00:12:56 -0800 (PST) Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Scl2n2Csnz4f3m7b; Sat, 25 Nov 2023 16:12:49 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.75]) by mail.maildlp.com (Postfix) with ESMTP id A46091A01F4; Sat, 25 Nov 2023 16:12:53 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgCnSkmCrGFlWcLEBw--.36822S7; Sat, 25 Nov 2023 16:12:53 +0800 (CST) From: Kemeng Shi To: tytso@mit.edu, adilger.kernel@dilger.ca Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/8] ext4: remove unused return value of ext4_mb_release Date: Sun, 26 Nov 2023 00:11:40 +0800 Message-Id: <20231125161143.3945726-6-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20231125161143.3945726-1-shikemeng@huaweicloud.com> References: <20231125161143.3945726-1-shikemeng@huaweicloud.com> 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:Syh0CgCnSkmCrGFlWcLEBw--.36822S7 X-Coremail-Antispam: 1UD129KBjvJXoWxJryftF1xZFyrGw17Aw4kXrb_yoW8Xw1kpF s8Ar18Cr4UuF1DuanrWF4UWw1Sgw1I9ry8GrWSg34Sqr9xtryxAFsrtF1jvF1FqFZ7GFnx ZF4jgFyUCr4fC37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUB2b4IE77IF4wAFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k2 6cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M280x2IEY4vEnII2IxkI6r1a6r45M2 8IrcIa0xkI8VA2jI8067AKxVWUAVCq3wA2048vs2IY020Ec7CjxVAFwI0_Gr0_Xr1l8cAv FVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3w A2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE 3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr2 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_JFI_Gr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6x kF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU3XTQUUUUU X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ Remove unused return value of ext4_mb_release. Signed-off-by: Kemeng Shi --- fs/ext4/ext4.h | 2 +- fs/ext4/mballoc.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 8ccebe0d4..fb35cae16 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2902,7 +2902,7 @@ extern const struct seq_operations ext4_mb_seq_groups_ops; extern const struct seq_operations ext4_mb_seq_structs_summary_ops; extern int ext4_seq_mb_stats_show(struct seq_file *seq, void *offset); extern int ext4_mb_init(struct super_block *); -extern int ext4_mb_release(struct super_block *); +extern void ext4_mb_release(struct super_block *); extern ext4_fsblk_t ext4_mb_new_blocks(handle_t *, struct ext4_allocation_request *, int *); extern void ext4_discard_preallocations(struct inode *, unsigned int); diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index f79e87ad3..8d6246db3 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -3725,7 +3725,7 @@ static int ext4_mb_cleanup_pa(struct ext4_group_info *grp) return count; } -int ext4_mb_release(struct super_block *sb) +void ext4_mb_release(struct super_block *sb) { ext4_group_t ngroups = ext4_get_groups_count(sb); ext4_group_t i; @@ -3801,8 +3801,6 @@ int ext4_mb_release(struct super_block *sb) } free_percpu(sbi->s_locality_groups); - - return 0; } static inline int ext4_issue_discard(struct super_block *sb, -- 2.30.0