Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp863390rbd; Fri, 23 Feb 2024 06:04:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVafbO30kpJAm8riD8dlYBuUxUBeml48gnNGueNyH35JUaSx7y0dVQ5hLzL9kYTU0ZVKbZMpOfSdSlSh2alEd7pPwaV15t6F+gsnpgiWA== X-Google-Smtp-Source: AGHT+IH0lyl3S2/Pai7GKRJU55DocGr9EUl5snvt0bwGkubf/agZZPrbJ9sWrei9vx8cJTsBCcy2 X-Received: by 2002:a17:90b:124c:b0:299:2807:1eb1 with SMTP id gx12-20020a17090b124c00b0029928071eb1mr1908718pjb.34.1708697065103; Fri, 23 Feb 2024 06:04:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708697065; cv=pass; d=google.com; s=arc-20160816; b=PTYjm8LdLvVJ/xJOj/jvz9cJu+Y/bvDh5ZRBwuQzIFfhT/y+ct0CKV/aHfa2DiXgQD rPZXvdoctIzKUXhoxbqwUpQhEQKM/N+/Pj0JkJw+7sK5Yo5QrJkm8jg7Ra0RkkFcBBwO AZu4W8WLoF2lYpXNhuBPNJtxVZrjHYeMee6tyo+uPN4Ip6D0cNKKyGjD5r6MK6hTNjB3 ADeaTbr2qdt4Eov20qvSOx61QbxspXwKSZ94AqqGbgcebDU51od/It9XPNWEyv2m1IbN IfxoxEJlK5eHmnDYz9TnP/xoBiR714ZmyW2E5j0c6lh0jcZw5GwJdSq4f4Ilh0Ojc9z1 2Ygg== 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=XA0sZ6JJc18kHRKhInWcch5SyXuj+GsIXNvAp5t0Yuw=; fh=Vt1fQy2dgQU0O3oR0tcFkhLyXcLYbgADLSayzzYbbCw=; b=i4Sl14C0GEMnWWMBNoKZvfbrQqtF4Z/WSPD98ga8HDoV8QleRYchlYickdbAxG6PkC PmLEJgCEvTOwj1b/6yrARr/lnEK4l+GFdJKYuATbgDgpB4sDjirpvQx0UHNpHQfAMA92 KaGmcnMymr7IsplaUl27Zgyu8yFlnwRxkiGdX5VUVY8nGFw0XNLotrkhnRrPCzGliakR lyCfyJVeE0LJ9LwAp1unTLr8ULivaa1OuzbMPyi66HfGeAxNSHFVRKpOkIfEXgQqbdf0 aZhfOcymup3yQnwRQs8TsGkEKVTxBsqNop/DoA0BWCOzYzs707fvNy04AM7DXVBGRlAy ZvuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=2E8P1CS+; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=2E8P1CS+; 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-78434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78434-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id oa2-20020a17090b1bc200b00299dfc862dasi1213685pjb.24.2024.02.23.06.04.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 06:04:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=2E8P1CS+; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=2E8P1CS+; 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-78434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78434-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 90B65B232C1 for ; Fri, 23 Feb 2024 13:59:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7877480049; Fri, 23 Feb 2024 13:59:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="2E8P1CS+"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="mrfuW1qE"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="2E8P1CS+"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="mrfuW1qE" 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 CC4A476039; Fri, 23 Feb 2024 13:59:06 +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=1708696748; cv=none; b=aTEYPri1Qm+aXUaL3KrCqU2GYb/NFLWPcm4k1W0XGq8ng0HP0jyfhz+/2Vs9svLH5Ip76mhYq8mlskQA7394aUYVREDWj1JRJR1rJlgXk70jyMe8r8k9O5iN3/u77VZ52vv7gFumlkHvvItHTMk0zkgKtQXstaLnsy1tjRTfbJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708696748; c=relaxed/simple; bh=uSOD4jTUtvh8sor/7J66udolNY1wrJubY0glUQRD1pY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sfH5Za/FkigV0WxdgXy79EPjqbBXcooBD7lROtbOCQ1yzpWsF61ToIj6OpBqhZOCmG18vVvrcn4i+SxlfA9rEysgEqgexke9xkdX0MSExbOSp8NidEqGFaHzOZq7+WMhnl7xXXMGCkl/vX61OZS6Q44TJqoPZg71OrUNXNTjz1s= 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=2E8P1CS+; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=mrfuW1qE; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=2E8P1CS+; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=mrfuW1qE; 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 [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 C83381FC0B; Fri, 23 Feb 2024 13:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1708696744; 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=XA0sZ6JJc18kHRKhInWcch5SyXuj+GsIXNvAp5t0Yuw=; b=2E8P1CS+aFuUOk5ohR4B+AOhEnxvH84ci8ZpAr/GzeTi6cUjSeaIczBTjkvKwU/vmBXJDs uKwnRzlkZMeojLRw6IlXgObcDZK5cpbm9lqWyBO9RJQVkaTBERA5iTjc0Y4hmyR5sbFe9H oSIgNqKTmBavTCwOzhIkvwHG/bfAe5Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1708696744; 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=XA0sZ6JJc18kHRKhInWcch5SyXuj+GsIXNvAp5t0Yuw=; b=mrfuW1qEMcKf5erVGxjtZtpxIgX8QHxk7lOXA/dX0hRUl1HFig4Q7YESXVH0UKruR7IrBQ H+5tLH507pDZU3DA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1708696744; 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=XA0sZ6JJc18kHRKhInWcch5SyXuj+GsIXNvAp5t0Yuw=; b=2E8P1CS+aFuUOk5ohR4B+AOhEnxvH84ci8ZpAr/GzeTi6cUjSeaIczBTjkvKwU/vmBXJDs uKwnRzlkZMeojLRw6IlXgObcDZK5cpbm9lqWyBO9RJQVkaTBERA5iTjc0Y4hmyR5sbFe9H oSIgNqKTmBavTCwOzhIkvwHG/bfAe5Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1708696744; 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=XA0sZ6JJc18kHRKhInWcch5SyXuj+GsIXNvAp5t0Yuw=; b=mrfuW1qEMcKf5erVGxjtZtpxIgX8QHxk7lOXA/dX0hRUl1HFig4Q7YESXVH0UKruR7IrBQ H+5tLH507pDZU3DA== 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 BE04F13776; Fri, 23 Feb 2024 13:59:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id MttgLqik2GVhfgAAn2gu4w (envelope-from ); Fri, 23 Feb 2024 13:59:04 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 83BDDA07D1; Fri, 23 Feb 2024 14:59:00 +0100 (CET) Date: Fri, 23 Feb 2024 14:59:00 +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 6/7] fs/writeback: correct comment of __wakeup_flusher_threads_bdi Message-ID: <20240223135900.cogmgf5zvub3cpm2@quack3> References: <20240208172024.23625-1-shikemeng@huaweicloud.com> <20240208172024.23625-7-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-7-shikemeng@huaweicloud.com> Authentication-Results: smtp-out2.suse.de; none X-Spamd-Result: default: False [0.40 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; 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]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,huaweicloud.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)[44.81%] X-Spam-Level: X-Spam-Flag: NO X-Spam-Score: 0.40 On Fri 09-02-24 01:20:23, Kemeng Shi wrote: > Commit e8e8a0c6c9bfc ("writeback: move nr_pages == 0 logic to one > location") removed parameter nr_pages of __wakeup_flusher_threads_bdi > and we try to writeback all dirty pages in __wakeup_flusher_threads_bdi > now. Just correct stale comment. > > Signed-off-by: Kemeng Shi Nice. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/fs-writeback.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c > index e8868e814e0a..816505d74b2f 100644 > --- a/fs/fs-writeback.c > +++ b/fs/fs-writeback.c > @@ -2345,8 +2345,7 @@ void wb_workfn(struct work_struct *work) > } > > /* > - * Start writeback of `nr_pages' pages on this bdi. If `nr_pages' is zero, > - * write back the whole world. > + * Start writeback of all dirty pages on this bdi. > */ > static void __wakeup_flusher_threads_bdi(struct backing_dev_info *bdi, > enum wb_reason reason) > -- > 2.30.0 > -- Jan Kara SUSE Labs, CR