Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp854736rbd; Fri, 23 Feb 2024 05:50:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW51HZ5E5r2vxFcZNaYonOAtzRJbX2LywPOVcGeGHACg9hXzmLWJm6eJ465CLouslYDchdS0xo/av1Cmf/k1yGUyNk2wh6n6hSVuCzeIA== X-Google-Smtp-Source: AGHT+IFuFzlXYmpAj9CvihhGNxm/T1p3jENXXE2QAG1Khixa4jB5ICVGVeHcDDRk3D9mxjQ+DqIu X-Received: by 2002:aa7:cf98:0:b0:565:8287:cac6 with SMTP id z24-20020aa7cf98000000b005658287cac6mr620202edx.27.1708696205553; Fri, 23 Feb 2024 05:50:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708696205; cv=pass; d=google.com; s=arc-20160816; b=UukIv4gSYudZ4PDrPFPMoqiN4ln9tG75A4Fr+6klyQYktvOK2+X/Qt+op+OtG4DJcN 9yfVxlmCi03o+KEms/a93ZvGPyXifmOOTv1l5TY+iy6f3ANUjXFxVMQOoKXvgTPpKx9C aL+hauFFlWDL2YP+9eRsT31kXqxNT4SgIx8qLX2taJ55w7n9Xn+veb3vStibJQ3rR/73 /Nxqv6nd19zYOEeM8WVn/vgIRG25DwWf2d60rPgBDA+YgmzOWuo3HRd9uJbYkV8rUoxq PsKKZp9Acg/wYB4mdb6vuj8sfqKTKkNpU7nx8C/TDmBNnvBl7C6ZgUzk90Gxd+kcZF0P dcBg== ARC-Message-Signature: i=2; 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=hgCt7+lwHq+iVbnoG6vOwvCIhtYHluaSv2Rtn1WCIzU=; fh=Vt1fQy2dgQU0O3oR0tcFkhLyXcLYbgADLSayzzYbbCw=; b=s6YHAr1PUmb2VPoGlg3ZaPdK/AJ/YR8W3orNqsqDUbkxb5ifFI2SmvX2UdWovs7f9/ 6UqWg+ahX9MQ7HviFsO569oVMahdNKnc8dGLF/logCfnMcs0ca6dqzPgKRzDp4TJPOQb NccSEnX1952P0Dw3BhaQwmOXno55EQkzgWWig9twcM4VPsceln+5eUNWHVRz9pHWBSfb 1WciNT+sq4gcj1XHddj5FSAFPe4CMPsm8uYLauzEE7kmmKVU+kC8FNaRy1Y+OGTLXCie FTKBG7u2Z02nuaYWZYt1UYmNq16tn/Nm4NL5zAHBMobGTUThpREmDIeJ9edsn6Ti2CE9 KGVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ybmeF5ON; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=33peNjSQ; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ybmeF5ON; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-78423-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78423-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dz9-20020a0564021d4900b005653439c79asi1540544edb.616.2024.02.23.05.50.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 05:50:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78423-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ybmeF5ON; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=33peNjSQ; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ybmeF5ON; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-78423-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78423-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1E1CF1F23845 for ; Fri, 23 Feb 2024 13:50:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 510CC7FBBD; Fri, 23 Feb 2024 13:49:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="ybmeF5ON"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="33peNjSQ"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="ybmeF5ON"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="33peNjSQ" 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 C4B7115AE0; Fri, 23 Feb 2024 13:49:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708696195; cv=none; b=qp/5bxPaFRbRVyB1E0irHUZ6VQYMsKKmgppsICPNrB2yfBwU61p2Ckib98LY0lrK+Bw8/H6wW2UPtmGSTaVQ1ejXcuFVmw8EEpC5UZ7YcflXAK5qdmCHcf2ucN5kDV3tumt0uzqC0hgx5Exybiqj1fxq3rEyrPfCptyeRYvFgwI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708696195; c=relaxed/simple; bh=Bci/ri0KGbn77LWCEi8X8HiO7XovISCOHXtLf1X3y28=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LBDroKwPhvpouD9zjAbHaQ/6H5LLZv7xCAd1soQ820iYvNCbPx/mn/hV0j/Q2DjDw4ojQXNVqyl+XY/s6NCcPqs0jMmqdHouk4MAr2un5korojJ+cq9ZTmE0LGlbVB27YE6ru4ftHAIqxde0oJLJyDHrVWGORVj0NrNVsQcqtC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=ybmeF5ON; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=33peNjSQ; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=ybmeF5ON; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=33peNjSQ; arc=none smtp.client-ip=195.135.223.131 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 imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (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 00D251FC0A; Fri, 23 Feb 2024 13:49:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1708696192; 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=hgCt7+lwHq+iVbnoG6vOwvCIhtYHluaSv2Rtn1WCIzU=; b=ybmeF5ONNvbGwF6xFMEz5XaFAaRWR8ODZPNJWs0sV09QJge60LUHBTPM7OjkoN1TbaqYpH pjdEv3l96qxNaV7CgWYzAmMLZ3bv89QsPivPnzQ6gSO4knnjXU22xmB8YKsKv6DYpsY2dz 4bHuI0/dOJovEnR6KvlMxDaHT+PYDxg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1708696192; 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=hgCt7+lwHq+iVbnoG6vOwvCIhtYHluaSv2Rtn1WCIzU=; b=33peNjSQbDsy78c1ZtNgZH31O/zn3OufT9ywgTCcQ+iz/HNqtCx8+zQdBaM5j2+lFZ+QVj mH3xzwwXIxRSRLDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1708696192; 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=hgCt7+lwHq+iVbnoG6vOwvCIhtYHluaSv2Rtn1WCIzU=; b=ybmeF5ONNvbGwF6xFMEz5XaFAaRWR8ODZPNJWs0sV09QJge60LUHBTPM7OjkoN1TbaqYpH pjdEv3l96qxNaV7CgWYzAmMLZ3bv89QsPivPnzQ6gSO4knnjXU22xmB8YKsKv6DYpsY2dz 4bHuI0/dOJovEnR6KvlMxDaHT+PYDxg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1708696192; 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=hgCt7+lwHq+iVbnoG6vOwvCIhtYHluaSv2Rtn1WCIzU=; b=33peNjSQbDsy78c1ZtNgZH31O/zn3OufT9ywgTCcQ+iz/HNqtCx8+zQdBaM5j2+lFZ+QVj mH3xzwwXIxRSRLDQ== Received: from imap2.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 imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id E6E9413776; Fri, 23 Feb 2024 13:49:51 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id URBiOH+i2GVkfAAAn2gu4w (envelope-from ); Fri, 23 Feb 2024 13:49:51 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id A2BC2A07D1; Fri, 23 Feb 2024 14:49:51 +0100 (CET) Date: Fri, 23 Feb 2024 14:49:51 +0100 From: Jan Kara To: Kemeng Shi Cc: viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/7] fs/writeback: remove unused parameter wb of finish_writeback_work Message-ID: <20240223134951.cym6bttyfto42zvz@quack3> References: <20240208172024.23625-1-shikemeng@huaweicloud.com> <20240208172024.23625-4-shikemeng@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240208172024.23625-4-shikemeng@huaweicloud.com> Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=ybmeF5ON; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=33peNjSQ X-Spamd-Result: default: False [-2.81 / 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:98:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_FIVE(0.00)[6]; 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.com:email,huaweicloud.com:email,suse.cz:dkim,suse.cz: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(-3.00)[100.00%] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: 00D251FC0A X-Spam-Level: X-Spam-Score: -2.81 X-Spam-Flag: NO On Fri 09-02-24 01:20:20, Kemeng Shi wrote: > Remove unused parameter wb of finish_writeback_work. > > Signed-off-by: Kemeng Shi Sure. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/fs-writeback.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c > index edb0cff51673..2619f74ced70 100644 > --- a/fs/fs-writeback.c > +++ b/fs/fs-writeback.c > @@ -166,8 +166,7 @@ static void wb_wakeup_delayed(struct bdi_writeback *wb) > spin_unlock_irq(&wb->work_lock); > } > > -static void finish_writeback_work(struct bdi_writeback *wb, > - struct wb_writeback_work *work) > +static void finish_writeback_work(struct wb_writeback_work *work) > { > struct wb_completion *done = work->done; > > @@ -196,7 +195,7 @@ static void wb_queue_work(struct bdi_writeback *wb, > list_add_tail(&work->list, &wb->work_list); > mod_delayed_work(bdi_wq, &wb->dwork, 0); > } else > - finish_writeback_work(wb, work); > + finish_writeback_work(work); > > spin_unlock_irq(&wb->work_lock); > } > @@ -2285,7 +2284,7 @@ static long wb_do_writeback(struct bdi_writeback *wb) > while ((work = get_next_work_item(wb)) != NULL) { > trace_writeback_exec(wb, work); > wrote += wb_writeback(wb, work); > - finish_writeback_work(wb, work); > + finish_writeback_work(work); > } > > /* > -- > 2.30.0 > -- Jan Kara SUSE Labs, CR