Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp91714rdb; Thu, 21 Dec 2023 03:54:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEY8xTtpUTgRMZGThy8/gyOJ9WGOUJ8nLgyPwy9MDOyksuIFhVbjGmGS+IrPbXV3Hwuig/1 X-Received: by 2002:a05:6a21:998d:b0:190:85d9:9d4b with SMTP id ve13-20020a056a21998d00b0019085d99d4bmr697869pzb.95.1703159689873; Thu, 21 Dec 2023 03:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703159689; cv=none; d=google.com; s=arc-20160816; b=esS2h+eyoenuBKY4vpAzYXelzKhBY/CF+57IqXy+5Zq61Hfs9X0k+HxzrC3IT9MVCE 9MGOQDZKDpxL00Be8ZTFho9/sI/gk0ruHiYPy+lvZbA0Y0VlICA+ZhGeeJ2tZ6gFHExQ yQ2v9l5sCCTKdiQILuIO8EHUjPqKEL6syRFFTyvgqz2y8mWIXPsojBbDZ+7leXBb7D0w PhfGFo9TdtJ8LB2nA2dDEE7U+UPl2XlnVwnmOdNf9ttK/QgDLUnum1hS5kfu0iv6v8DM BJDuNuUmEdGKqesxq+Xi2HxxdzdIAfZN15E9UtpSyZjAh7rJO1GtnirAvlf92keeMlAn i95g== 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=2M7C0GoB7X8XAnxaAgw9zOcBEuLiI+H/k44O2aeGnkY=; fh=i6rGHk/clC1f9Y4mpJyYVOWW6p98QflrI/jjeassMJc=; b=A0RhQlUxNcDohZiuKEVySkrMa9I+ls2+mjTpmpjU1rXnC0k96WM+AqmGn/M4yPMuo2 PX4+EdVOsMdLcKlK6CcAfWKg49cnOXukECHJNjQpbR+a4/zmf1wgU6urYbBWHErj5sn0 /1Cu3EYUBcrfwPd+mq7gQEVdGZWKlA1O2BJkMlbjfIrSPyD0srW7h48SyPvZlcj6Gu21 k1HBD5rQDMzPu9Ma7sZ8bC3w/VJ0DO/gni8czoh36IZGr+xPcDXCWeJ/UilrBS4Z4Otc S3yAqH2TPRl1XrVgL/S+yot16yj87QTyYCKRKG0wXs2whMtKkBaDzBvZ32QXch3JBuhN khFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="FaC/jpxL"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="FaC/jpxL"; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel+bounces-8309-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8309-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e13-20020a170902d38d00b001cfb1e21bcdsi1363647pld.539.2023.12.21.03.54.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 03:54:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8309-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="FaC/jpxL"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="FaC/jpxL"; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel+bounces-8309-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8309-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 84E2A281FB3 for ; Thu, 21 Dec 2023 11:54:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E73C6E58C; Thu, 21 Dec 2023 11:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="FaC/jpxL"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="tDOhWt+0"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="FaC/jpxL"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="tDOhWt+0" X-Original-To: linux-kernel@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 3CE956A02A; Thu, 21 Dec 2023 11:54:39 +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 [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 75BDC1FB73; Thu, 21 Dec 2023 11:54:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1703159677; 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=2M7C0GoB7X8XAnxaAgw9zOcBEuLiI+H/k44O2aeGnkY=; b=FaC/jpxLTx/SFyAVWKmjOvXA97rWeI26wRgraGOiIvumbUYeYgm8HnDW+GaZfRAD+3K13G 70RzarMo/xBV8tlymkKoirCLoG+QX1to/RLOkqLeZEdLh/uU5X0cwCDxTtTF+orwDRgl2P 5wClfvEV0WUHZILqkwO5CWHtDsXYsbs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1703159677; 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=2M7C0GoB7X8XAnxaAgw9zOcBEuLiI+H/k44O2aeGnkY=; b=tDOhWt+0l/bQ27UXfO4HoW7dToZgy13cJ2qKXi8v0qGC9cg3XscO1pobNP7+VUNSk2vDV0 i/2sgKfIazW7QzCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1703159677; 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=2M7C0GoB7X8XAnxaAgw9zOcBEuLiI+H/k44O2aeGnkY=; b=FaC/jpxLTx/SFyAVWKmjOvXA97rWeI26wRgraGOiIvumbUYeYgm8HnDW+GaZfRAD+3K13G 70RzarMo/xBV8tlymkKoirCLoG+QX1to/RLOkqLeZEdLh/uU5X0cwCDxTtTF+orwDRgl2P 5wClfvEV0WUHZILqkwO5CWHtDsXYsbs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1703159677; 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=2M7C0GoB7X8XAnxaAgw9zOcBEuLiI+H/k44O2aeGnkY=; b=tDOhWt+0l/bQ27UXfO4HoW7dToZgy13cJ2qKXi8v0qGC9cg3XscO1pobNP7+VUNSk2vDV0 i/2sgKfIazW7QzCg== 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 6A1A113AB5; Thu, 21 Dec 2023 11:54:37 +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 F3/iGX0nhGVEZAAAD6G6ig (envelope-from ); Thu, 21 Dec 2023 11:54:37 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 2D5BBA07E3; Thu, 21 Dec 2023 12:54:37 +0100 (CET) Date: Thu, 21 Dec 2023 12:54:37 +0100 From: Jan Kara To: Christoph Hellwig Cc: linux-mm@kvack.org, "Matthew Wilcox (Oracle)" , Jan Kara , David Howells , Brian Foster , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 17/17] writeback: update the kerneldoc comment for tag_pages_for_writeback Message-ID: <20231221115437.nyxxipfyezn6jrzt@quack3> References: <20231218153553.807799-1-hch@lst.de> <20231218153553.807799-18-hch@lst.de> 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: <20231218153553.807799-18-hch@lst.de> X-Spam-Level: X-Spam-Level: X-Spamd-Result: default: False [-2.60 / 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]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RCPT_COUNT_SEVEN(0.00)[8]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:email,suse.com:email]; 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%] Authentication-Results: smtp-out2.suse.de; none X-Spam-Score: -2.60 X-Spam-Flag: NO On Mon 18-12-23 16:35:53, Christoph Hellwig wrote: > Don't refer to write_cache_pages, which now is just a wrapper for the > writeback iterator. > > Signed-off-by: Christoph Hellwig Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > mm/page-writeback.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/mm/page-writeback.c b/mm/page-writeback.c > index d3c2c78e0c67ce..bc69044fd063e8 100644 > --- a/mm/page-writeback.c > +++ b/mm/page-writeback.c > @@ -2325,18 +2325,18 @@ void __init page_writeback_init(void) > } > > /** > - * tag_pages_for_writeback - tag pages to be written by write_cache_pages > + * tag_pages_for_writeback - tag pages to be written by writeback > * @mapping: address space structure to write > * @start: starting page index > * @end: ending page index (inclusive) > * > * This function scans the page range from @start to @end (inclusive) and tags > - * all pages that have DIRTY tag set with a special TOWRITE tag. The idea is > - * that write_cache_pages (or whoever calls this function) will then use > - * TOWRITE tag to identify pages eligible for writeback. This mechanism is > - * used to avoid livelocking of writeback by a process steadily creating new > - * dirty pages in the file (thus it is important for this function to be quick > - * so that it can tag pages faster than a dirtying process can create them). > + * all pages that have DIRTY tag set with a special TOWRITE tag. The caller > + * can then use the TOWRITE tag to identify pages eligible for writeback. > + * This mechanism is used to avoid livelocking of writeback by a process > + * steadily creating new dirty pages in the file (thus it is important for this > + * function to be quick so that it can tag pages faster than a dirtying process > + * can create them). > */ > void tag_pages_for_writeback(struct address_space *mapping, > pgoff_t start, pgoff_t end) > -- > 2.39.2 > -- Jan Kara SUSE Labs, CR