Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6525651rdb; Tue, 2 Jan 2024 05:07:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHn7uYY+y1POgrk61BpZ+OgrbViHh3Z0kk0vLdFjA68sGp0N5Uvl99GFU4iSJi5tee6glm X-Received: by 2002:a05:6902:70c:b0:dbe:3404:133c with SMTP id k12-20020a056902070c00b00dbe3404133cmr5400839ybt.8.1704200826321; Tue, 02 Jan 2024 05:07:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704200826; cv=none; d=google.com; s=arc-20160816; b=rfHTpxnuBDVnkwiCxc5ba8HqZEr1stpmc8ug66TAJkn/AF8OmHJDChS1G0clW9n0Qw alvJ6iwMhIrlMhi/Lq2TdC+cQkTzEbWLOQ24GtaXqxVacxKie4fMFkgRvdS5UKAZWgX5 pqay5QK84h3YfwQ1DX2YfrYF+Kwrzwxd2ttHdL+qysK8vHeLoVJmSPfdWHi6WR/2HqxJ AVYu1wxUgmtb3CT0FYB5hgDxYna4p1FvEx/onZOLGfoWDOviEXVRymI8QU8axGL9v9BY M/7I28TdjFjO5sxBb97Ux0I1M9TfWCfZ1Y8So5HKfL/y+GELZze0rMTO5I5z/EebH1RO zZog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=N1HK5st0fjaPdug9MxLaEr7IcyAcjUJdi+MRE5GHHGs=; fh=XvwuWoX214LrU84o0bRNxbP9fQGtZLmTJCo8aYfWs9o=; b=vqI88XfCRsB/xWeiDLel1sUqL6udRkO8x8Y0xnL73zY1e06WSZP9rm0cHVvE94I3+b ZehpWwcXj83Mkmhpy16+UUni4pwF+uZgYSoQKL0ty8Mkv70EGAb/RHH0+hwZuwF5oQoj HADNugfaqVT9QlmFM5hD979zEs25zr8XkPOn6xVicWIM9lAxcv+EzNnA13aEcF+ZcnHu /JwyB9A6mdKwzmQrLxt8laZR7HX7s1/5uVLLxuoxWjNRjFoQQIT1+MBsXN+0WGW6JCCT 0iEf0Z3ZFPRi3eQ7JGi/EzfePKCZxp/+fkile26SRoQCwX5hLazIvXfMFAzvqPbkEOJQ vSSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Z6wpNsQ2; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Z6wpNsQ2; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-ext4+bounces-626-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-626-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 r20-20020a67f454000000b00467016a8cb4si1804231vsn.291.2024.01.02.05.07.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:07:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-626-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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Z6wpNsQ2; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Z6wpNsQ2; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-ext4+bounces-626-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-626-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 0F1991C21F8C for ; Tue, 2 Jan 2024 13:07:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A908F9D2; Tue, 2 Jan 2024 13:07:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="Z6wpNsQ2"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="r2RZobTY"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="Z6wpNsQ2"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="r2RZobTY" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BEB0F9C4; Tue, 2 Jan 2024 13:06:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B082F1FCF9; Tue, 2 Jan 2024 13:06:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1704200816; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=N1HK5st0fjaPdug9MxLaEr7IcyAcjUJdi+MRE5GHHGs=; b=Z6wpNsQ2HKtELcdmv+yjRWtIvj3Ifwl+6HM1EUbOv+kh86MCgfAZ9LmpE+GpJBKdi0yoc8 HBADIoRmDXl4eb1NMqfJRu2eBzCojJTplxCoZYa4u2TrjOxgQ8yYmaLuLMuBdN1PDcSXrY luDW+mANvmJGaL8ctxbCREyqnLWe4fE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1704200816; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=N1HK5st0fjaPdug9MxLaEr7IcyAcjUJdi+MRE5GHHGs=; b=r2RZobTY6VJjm0gY36hXLiUeGIId6dHnVWXCxVYx9dg+E82A/VeRjkhp4HgJwyLpL/HfpH wxVxQEB/d1ah73BA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1704200816; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=N1HK5st0fjaPdug9MxLaEr7IcyAcjUJdi+MRE5GHHGs=; b=Z6wpNsQ2HKtELcdmv+yjRWtIvj3Ifwl+6HM1EUbOv+kh86MCgfAZ9LmpE+GpJBKdi0yoc8 HBADIoRmDXl4eb1NMqfJRu2eBzCojJTplxCoZYa4u2TrjOxgQ8yYmaLuLMuBdN1PDcSXrY luDW+mANvmJGaL8ctxbCREyqnLWe4fE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1704200816; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=N1HK5st0fjaPdug9MxLaEr7IcyAcjUJdi+MRE5GHHGs=; b=r2RZobTY6VJjm0gY36hXLiUeGIId6dHnVWXCxVYx9dg+E82A/VeRjkhp4HgJwyLpL/HfpH wxVxQEB/d1ah73BA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id A555513AC6; Tue, 2 Jan 2024 13:06:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id okJdKHAKlGU3SgAAD6G6ig (envelope-from ); Tue, 02 Jan 2024 13:06:56 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 5B919A07EF; Tue, 2 Jan 2024 14:06:41 +0100 (CET) Date: Tue, 2 Jan 2024 14:06:41 +0100 From: Jan Kara To: Kemeng Shi Cc: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/8] ext4: remove unused return value of ext4_mb_release_group_pa Message-ID: <20240102130641.5mzf24ydmov3itxi@quack3> References: <20231125161143.3945726-1-shikemeng@huaweicloud.com> <20231125161143.3945726-8-shikemeng@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231125161143.3945726-8-shikemeng@huaweicloud.com> X-Spam-Level: * X-Spam-Level: Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=Z6wpNsQ2; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=r2RZobTY X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-1.01 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.cz:+]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim,suse.cz:email,huaweicloud.com:email,suse.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[40.57%] X-Spam-Score: -1.01 X-Rspamd-Queue-Id: B082F1FCF9 X-Spam-Flag: NO On Sun 26-11-23 00:11:42, Kemeng Shi wrote: > Remove unused return value of ext4_mb_release_group_pa. > > Signed-off-by: Kemeng Shi Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > 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 > > -- Jan Kara SUSE Labs, CR