From patchwork Thu Jan 25 08:57:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 13530272 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6993C47422 for ; Thu, 25 Jan 2024 08:59:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1C97A28000C; Thu, 25 Jan 2024 03:59:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 101FE280001; Thu, 25 Jan 2024 03:59:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EE3AD28000C; Thu, 25 Jan 2024 03:59:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id D958A280001 for ; Thu, 25 Jan 2024 03:59:09 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id BE882A2396 for ; Thu, 25 Jan 2024 08:59:09 +0000 (UTC) X-FDA: 81717234018.06.F462777 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf01.hostedemail.com (Postfix) with ESMTP id 2867940012 for ; Thu, 25 Jan 2024 08:59:07 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=SvZnatM4; spf=none (imf01.hostedemail.com: domain of BATV+b97a0fc658bf3e588113+7459+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+b97a0fc658bf3e588113+7459+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706173148; a=rsa-sha256; cv=none; b=BH+DfPebA1GGjJDh3ZBaUyUJXQLvwseB0MByJS8RZJoXFYchYgPjxCTqNMqzrNkKDEUKJf Uy4FC0AXtC9of5Z76QBZkkafRCINfMzp0KmI6XM8b42l12wL3AE/IaA6CE8EzOCwM/vTJc abkblUW6q5hnC+T/noVF2q39WTR6p9M= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=SvZnatM4; spf=none (imf01.hostedemail.com: domain of BATV+b97a0fc658bf3e588113+7459+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+b97a0fc658bf3e588113+7459+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706173148; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Nvs8NLSkqi3xoK+c7WXXiVGON/brvE1q1HDi04P3LYY=; b=T3cGfq1y5k78POJ1SbUDV/+TEhg1uTZA9ddyjRRIdDeytQGbFYOEPr4OFgisYfyg9Cp6WA V0VjNCLX2ypPcE/4pPQLprWR1ptgO842ybcBGbLUPVn7nPs8jRBtMRXU3OhojUJZHioJ63 3z38EHjT4+cn/V+1nMBhfuoZMFHSDqA= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=Nvs8NLSkqi3xoK+c7WXXiVGON/brvE1q1HDi04P3LYY=; b=SvZnatM4pQklWGScC9mHPuWxUK zxfxMuZE0VccNfw9iFHQXq7CfxUxAP3ayswkwOH9oGRTaHShpXQo8x1SxDbYTd7mqbAwOA+TMKjKq hFqcp396BhSwypZVLIY+aIZk/MYyndo49M7J+2iJ990Bde2fVU10Tq4MAZMh6cNa0ObpmVQ59XT4c V5x6rM0QRwa7q5KZapCVtfd0UIznQdMlmIPdNRIoInoFYPxjpyeqvOX7Y2/WKzxzcvsnp40odmxRT HKO8V+ScM19lkFJ5wwS0ys900HDBiaI5ZkBZa9PvX4+ed9Zhci+vKj4wc+tB7mNLpanWNElWcVxVI gdKbdCKA==; Received: from 2a02-8389-2341-5b80-39d3-4735-9a3c-88d8.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:39d3:4735:9a3c:88d8] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rSvZi-007QYC-2B; Thu, 25 Jan 2024 08:59:07 +0000 From: Christoph Hellwig To: linux-mm@kvack.org Cc: Matthew Wilcox , Jan Kara , David Howells , Brian Foster , Christian Brauner , "Darrick J. Wong" , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Dave Chinner , Jan Kara Subject: [PATCH 17/19] writeback: update the kerneldoc comment for tag_pages_for_writeback Date: Thu, 25 Jan 2024 09:57:56 +0100 Message-Id: <20240125085758.2393327-18-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240125085758.2393327-1-hch@lst.de> References: <20240125085758.2393327-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 2867940012 X-Stat-Signature: 4n645nt7pfrny65q5uooz7eq5dksmja7 X-Rspam-User: X-HE-Tag: 1706173147-98162 X-HE-Meta: U2FsdGVkX1/i6tkZMSi+siaEDGDF64mhH8HrJ4UbMs6r5w3AWoH93wOs/soCZ+5vwqguhRLnJIfS8bG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I5nRuCKlC/mds5+L1DoSTfOw8cDUjWzs3wScxXhUte9xZSYpWo0nhRNdLupTgEpjkS8OWbOGQK4GPEdoRhbel5hxUmqhnwd213lFzAHa1IT6kin46XGlNmJLRzR9rHrRWam9Jh9mQRWDzKSLLNpBVaXFvpxdHl6vpBq3pUkdfGBnWEAHUpkbw48OLHCsyO7TRB4l75TpWaBbJn7+fJMDw85u0u+Fis32u3nue0c+onvYGUH1C6qtZ8fV9wNtIWELh3BVMV4Kvk6ofkm/5N1sSjR/OPfcLx38PnXh1gD8M6drekybS8h2Jv8QtWbgNjLXPlNNclWZvmvPYiLS10L X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Don't refer to write_cache_pages, which now is just a wrapper for the writeback iterator. Signed-off-by: Christoph Hellwig Acked-by: Dave Chinner Reviewed-by: Jan Kara --- 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 81034d5d72e1f4..2a4b5aee5decd9 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)