From patchwork Wed Mar 27 18:54:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13607284 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 77DE0C47DD9 for ; Wed, 27 Mar 2024 18:54:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0F3C66B0087; Wed, 27 Mar 2024 14:54:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 055E46B008A; Wed, 27 Mar 2024 14:54:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E60156B008C; Wed, 27 Mar 2024 14:54:53 -0400 (EDT) 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 C93196B0087 for ; Wed, 27 Mar 2024 14:54:53 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 775281A028C for ; Wed, 27 Mar 2024 18:54:53 +0000 (UTC) X-FDA: 81943720866.15.C1644A8 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf09.hostedemail.com (Postfix) with ESMTP id 9AA46140018 for ; Wed, 27 Mar 2024 18:54:51 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=bB8QSwDk; dmarc=none; spf=none (imf09.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711565691; 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:references:dkim-signature; bh=6BDb0ZyUCKnDRXvSOoEU7O02vARAwOEExohv2rj0+Pc=; b=pA/5oDhzZ3AQrsLdDUzDg2r/zTOR1ViHlVEzO6/cK4plWKgKWnmIoYgwzrYlLeaxcbxw/v ipxcVdGDNXvMW5kk4XaSFtN+QeqiVYOnV7xGHHNokp7sGiusmvhq0dcuDH1/fpAwx+XKIk N5bVcENueROykPudrYYHaWPuMQNKFk4= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=bB8QSwDk; dmarc=none; spf=none (imf09.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711565691; a=rsa-sha256; cv=none; b=Z7LqmlGaCRIE/GA1ZgTwB4TaYjaJtWKG62RDGWEjKP8lmFt1H8Ur8BMo/2h/+pFXhF1/Gt 6+VlCHUpqh4Xzk3co2y1rtliockcsjJe30bPjRMu4pnrPOo6QQFecXr3gK9qoCt4rWkjZm VLxW1vj7s85gPipiFqYHc8n1DX8jwIU= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=6BDb0ZyUCKnDRXvSOoEU7O02vARAwOEExohv2rj0+Pc=; b=bB8QSwDktWm1JaM9HX1rCijI+U 9/ycHJgCtjnY65yLQhkwMtfl/A5+PUXINOzML8aq1ey8dq5m3ntWu+82xzQD+TOHN6muM9+oSJlAp tHQ12LHI5QDJLW++d61uAhmQ0CBKq1Ysb7gXv7Vt5dFAYQrwJIPdUuuE23qpiFNqcMJbIqWBgK1+V iS4g/rJbhIvMVxZG4KlWGHbgi5RcC34brGT9EwG0MD28idDpxFUy40nEgle3jDNAmLbSbMmBvJdaD LIy0GeIxioEXz7rxuPgGSGnITMWE7tMbREtMAvl3hUiqMlfjT9cVH0C+UvZnLSLS74SOY6yl+/DBK TQ/1iwpA==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpYQE-00000004W87-1DGU; Wed, 27 Mar 2024 18:54:50 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton , linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" Subject: [PATCH] filemap: Remove __set_page_dirty() Date: Wed, 27 Mar 2024 18:54:29 +0000 Message-ID: <20240327185447.1076689-1-willy@infradead.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 9AA46140018 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 5kxd9w1egx5ry3u6nqmshcpjw3ixuf7q X-HE-Tag: 1711565691-970461 X-HE-Meta: U2FsdGVkX18OkXw6+K6OQABnqkLXz+uIINBlF2jHQoAIQfnOe7EwZRHtLJZQR/ZQN38L7tIAkxS//nTyokJ1+yoTs62S/AA/lOpeIAi/fszSV2BS6JpJ8z0wAnXqGnh3aW/SLTIaqXyOHa5YcIQJyW7kaB5BfySOqHKsjvK6a1teOOWWY4F8LeoPOJ9U1uT9kGdYMnLlorKMmXO3vsGK2GReUKse11S0HJfAkUkROcCLeJ+6yWjklpJLl5+LBqx+fz1G1FTbaLCzsrBcxf95yaMfkXZnOFDTzN/Z3YfmyGwb+KttoW4s1OmCkTyHhfInHtPTdDrafHYLiBYVqaQT0VEr7O2JhJdOeQwXcCIDilSD1AgsdXriIdP/D6LOxP83jszJOr4YzogN0Z5MStlCKpljvGNkJX+vS2pmRFc3bXdcisZp/P1ZTU4o4ElsJ7rZoqhRc5nSFcr15Dw5z7y0q2LizsodbQhu99P2eHhKB1+xJnEUwkwjbSgySsopwgr7GxGOeJIYUbGNLZLXHg7VO7XPpA+HErYAEC0NgJisFkae5m2db4g0lVTxJl6ojnd6lQkoV2Y7HEtALuu7sUZb4QHzOSJNic1LIuMX80v51MSgxFKVTzWw4U5lhDyMNElIA/CtVUSPgyxGK+weGNvfq7qkTrKYI4EK5pDLov3by8ppUVyT6LfKZlTh2oWPnOOJz8qT8Lf0zFQTFmBkvC/T+Qo94WZo2NMowWXoLdTHcuLKIW1Y4vCDUxMF+AebEw9OX8MUrB9OfcNVXghGK0HHeL5ZOIlaU/jle/tmiJBObKJHHb/2iT88ujp6x+NNct8zL8npIvNQB8X6EuhyjdS6pSz+WyJNcJ135TWI7a3F8WgBQ99sNoqRIGMv0e/O+rkhuGusmwiLYyPzF3gYSs7vyGYcLOtQWyE2HfyZb3mZqAB6RKrYnrRTBOxdktjNa0kqvGFd/u9q8taL2I//vWd hYtEIwvj w2tvwwFQubdV38swv+kewlzkKOkEmd3d68ELPyalezIxaM/WJp0MEVpCBcF//3XiDWtRRYu9n01LQjTz3ZRShXewj2CB9/yWNPmNEA62oQZ8XEMs3wCT2/6Ht1a7vOjHuLwBcRsz4cafJo8Bms0N1OB3xXHh3jPzOXyaoc7XHQtl2Ref5+JGtDe8F3AzRJfaijoA8p4tNec2SR19wao8H30/kLLTNLyH3r4R8 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: All callers have been converted to use folios; remove this wrapper. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 2df35e65557d..dddbabdb8099 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -1144,11 +1144,6 @@ void folio_end_writeback(struct folio *folio); void wait_for_stable_page(struct page *page); void folio_wait_stable(struct folio *folio); void __folio_mark_dirty(struct folio *folio, struct address_space *, int warn); -static inline void __set_page_dirty(struct page *page, - struct address_space *mapping, int warn) -{ - __folio_mark_dirty(page_folio(page), mapping, warn); -} void folio_account_cleaned(struct folio *folio, struct bdi_writeback *wb); void __folio_cancel_dirty(struct folio *folio); static inline void folio_cancel_dirty(struct folio *folio)