Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1722514rdh; Sat, 25 Nov 2023 00:13:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPKVQLHZ2CbtbFiUUxkADe3zA7INK/ecJeeZkB4b9CMfmod+srM3S7oWeszghr8N497Zrw X-Received: by 2002:a05:6a20:3d13:b0:18c:177d:2122 with SMTP id y19-20020a056a203d1300b0018c177d2122mr3773041pzi.2.1700899998923; Sat, 25 Nov 2023 00:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700899998; cv=none; d=google.com; s=arc-20160816; b=MxrEHHN7hOOtQeCdTJy/hLGBsWQ4/h7Pizs9UsypugI/vCi/VvQyJERr0Z1vrppZ7t lWExv+yN7RgawJ+UdstAjLogA5fBQ+wlbqyeELZMVOH+WxhsiAP82L0mj4qGo53CIk2q xnIr70vcjZ9liC7nHJx8ma7GVCB3PCOHDsG7ThSyMt69ezpMQEpg+SLzyMt9d0vxNrS9 ks796SyCnBjhKEoQq0/v+7G/CPsbqJozwGA05JJTlwFNHMJg/o8kvB536d0kL17naRGA RYM7Vx9iweVVSMiJstime5itBohbZ0rYJaDgqnppkeoV8t7QF2b9XmV3yuDlq3xyxSvG atfw== 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=0FW4HA2qzS2HZFAUAxf8KG4U5PdNqrIAzUpFUlstQSM=; fh=eu2llfKjKKC0QBUtW6YWJ13du6subP7SB8ZN6DjSWMA=; b=p7RAi/V1OCaHClNgErKYZgKbQaxuavQ1gfKgaXMK+il2D6DBp14CuWV18cdGPc+t5X rsWvVQ6gtBW2EGNyCDlmi0iE3iUUgnUOBBSOKnsHTHU3OzAP5hX15+fIygF8eWroKEXD f0ZnXpcWhrmWd8IrKRDCzlQIF9YPrK1nV448fswTsS0K8vH0fpwNMLdAZ2FFy/1rL5ox 3Qih0FAXcNJuTDtArYZqO3U350H0LddERvdD0TsIO0sTf6fV7+LJu96Dkv57kANM+OI/ hGR5KMLjW16cPwEN+/pkmEX6vT8FS52h7m81vUjkh3e/VRrquD9zXxQ44drSe+fILxz4 IzeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-154-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 ns19-20020a17090b251300b00285a189ed1fsi625367pjb.0.2023.11.25.00.13.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 00:13:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-154-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-154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-154-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 16F5A281704 for ; Sat, 25 Nov 2023 08:13:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E37D4BE50; Sat, 25 Nov 2023 08:13:03 +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 83DF91702; Sat, 25 Nov 2023 00:12:56 -0800 (PST) Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Scl2q1cdrz4f3kKd; Sat, 25 Nov 2023 16:12:51 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.75]) by mail.maildlp.com (Postfix) with ESMTP id 01E9E1A0315; 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--.36822S8; 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 6/8] ext4: remove unused return value of ext4_mb_release_inode_pa Date: Sun, 26 Nov 2023 00:11:41 +0800 Message-Id: <20231125161143.3945726-7-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--.36822S8 X-Coremail-Antispam: 1UD129KBjvdXoW7Jr43Zw48CF15uryruFyrXrb_yoWDJFg_GF yUAr4xGryfZ34fu3WrK345ta90yan3ZrnxXF4rtrZ3Z3WrXa1ruw1DArn8ArW7Ww4akFy3 Cwn7Jr18KFWSgjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbS8YFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JFv_Gryl82 xGYIkIc2x26280x7IE14v26r126s0DM28IrcIa0xkI8VCY1x0267AKxVW5JVCq3wA2ocxC 64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM2 8EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq 3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E 7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcV C0I7IYx2IY67AKxVWUCVW8JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF 04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jstxDUUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ Remove unused return value of ext4_mb_release_inode_pa Signed-off-by: Kemeng Shi --- fs/ext4/mballoc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 8d6246db3..1ed6d1d5a 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -5278,7 +5278,7 @@ static void ext4_mb_new_preallocation(struct ext4_allocation_context *ac) * the caller MUST hold group/inode locks. * TODO: optimize the case when there are no in-core structures yet */ -static noinline_for_stack int +static noinline_for_stack void ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh, struct ext4_prealloc_space *pa) { @@ -5328,8 +5328,6 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh, */ } atomic_add(free, &sbi->s_mb_discarded); - - return 0; } static noinline_for_stack int -- 2.30.0