Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1722523rdh; Sat, 25 Nov 2023 00:13:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFp4UmdC+zbwE2JPe+wMVEyJ3YNb2PauTwN7y6lU3R6SD407OfXx9lpvfg/V9aE6F8KnqQg X-Received: by 2002:a17:903:244e:b0:1cf:530b:d027 with SMTP id l14-20020a170903244e00b001cf530bd027mr7262256pls.15.1700899999974; Sat, 25 Nov 2023 00:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700899999; cv=none; d=google.com; s=arc-20160816; b=TN/Jm9NL9RWrmOPFADhTr2Eb0T5FZE6pCD0Vfiql2isB7r/ZKqAel1nhzjOYKCIwLq HJvybRaY0zBjppZwCPrOqqQHNPZZEd4NQlV5zzcjutGZjj3+esO3mkI5NtXPmbk4TdM8 1o2T03d6uKn1rM9M9kKO5li0za36Z8266w5J9AEV6+iqSNaiFF/0PyowWD7ALBDiLlKI CpdVRFOldD73HjMFAEfDPq5JgehCmImpr+jo7gZE25e9ckP/EeRk+HQ/vkYisszq1bv/ HFcAzifYgizxdMuQgbBqvEkHdDodXsIjW/Bm6yP2RUnOCByGCXrnhNKClC+f/keQry4V Qxug== 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=BMrq6TXZ0zsKbnAZ2tGDkYEuf7TJeQLMMptFvFE1O+U=; fh=eu2llfKjKKC0QBUtW6YWJ13du6subP7SB8ZN6DjSWMA=; b=PZ+jiGmhv9COHnGlTms8G1NZY4j0m5C9yILYCfyfpR2/99WiSD7gQuf6Nq5wLH+w+c A/deurrWDczOjGy18KTMe33uXj62v02If3Kzd0xJj5EfBb2d4ppr00GtxcVOo9I/0VG3 lASwcfsiI/xOKk0f/vXx07LGURpmfcYlwpPXYWcIspZ4e+afGvtDTU9/hYWmxf4T/oeS 9dLZFdTU/jLUhMbEXFXuxO58/fhwgipr4+7zlAlUmPSKI8Vl601yeeyJVmYcONjb0ezT fF/JpBrziU0F9yfPYYht+d+oDfiHr7kT/IKLUJC22R+3wfqJYQfqUifQ1RCE7MYSwC4X VOSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-155-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-155-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c5-20020a170903234500b001cf6787772csi5528634plh.143.2023.11.25.00.13.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 00:13:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-155-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-155-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-155-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 77BFB2816EC for ; Sat, 25 Nov 2023 08:13:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16FD6C126; 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 dggsgout12.his.huawei.com (unknown [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6E901707; Sat, 25 Nov 2023 00:12:56 -0800 (PST) Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4Scl2r310Mz4f3jrp; Sat, 25 Nov 2023 16:12:52 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.75]) by mail.maildlp.com (Postfix) with ESMTP id 34C011A01F4; Sat, 25 Nov 2023 16:12:54 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgCnSkmCrGFlWcLEBw--.36822S9; Sat, 25 Nov 2023 16:12:54 +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 7/8] ext4: remove unused return value of ext4_mb_release_group_pa Date: Sun, 26 Nov 2023 00:11:42 +0800 Message-Id: <20231125161143.3945726-8-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--.36822S9 X-Coremail-Antispam: 1UD129KBjvdXoWrtr4fGF45tF1xKF4DKw1rZwb_yoWkZrc_Ca 47Xr4kA34fA3s293WrJry3t3yDKan7Zr9rWr4rKrWfAF1rW3ZxAw1DZrsxA397ua10ka43 GF93Zry8GFZYqjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbqkYFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JFv_Gryl82 xGYIkIc2x26280x7IE14v26r126s0DM28IrcIa0xkI8VCY1x0267AKxVW5JVCq3wA2ocxC 64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM2 8EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq 3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C267AKxVWUXVWUAwC20s026c02 F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw 1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUCVW8JwCI42IY6xIIjxv20xvEc7Cj xVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r 4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07js txDUUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ Remove unused return value of ext4_mb_release_group_pa. Signed-off-by: Kemeng Shi --- fs/ext4/mballoc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 1ed6d1d5a..e6561a09d 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -5330,7 +5330,7 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh, atomic_add(free, &sbi->s_mb_discarded); } -static noinline_for_stack int +static noinline_for_stack void ext4_mb_release_group_pa(struct ext4_buddy *e4b, struct ext4_prealloc_space *pa) { @@ -5344,13 +5344,11 @@ ext4_mb_release_group_pa(struct ext4_buddy *e4b, if (unlikely(group != e4b->bd_group && pa->pa_len != 0)) { ext4_warning(sb, "bad group: expected %u, group %u, pa_start %llu", e4b->bd_group, group, pa->pa_pstart); - return 0; + return; } mb_free_blocks(pa->pa_inode, e4b, bit, pa->pa_len); atomic_add(pa->pa_len, &EXT4_SB(sb)->s_mb_discarded); trace_ext4_mballoc_discard(sb, NULL, group, bit, pa->pa_len); - - return 0; } /* -- 2.30.0