From patchwork Sat Feb 17 02:25:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13561210 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 C1093C48260 for ; Sat, 17 Feb 2024 02:26:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A8BEB6B00A1; Fri, 16 Feb 2024 21:25:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2B95E6B00A6; Fri, 16 Feb 2024 21:25:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 022606B00A1; Fri, 16 Feb 2024 21:25:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id D6EC16B009E for ; Fri, 16 Feb 2024 21:25:54 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id A88A24014F for ; Sat, 17 Feb 2024 02:25:54 +0000 (UTC) X-FDA: 81799705428.09.50F01D0 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf08.hostedemail.com (Postfix) with ESMTP id 2A160160004 for ; Sat, 17 Feb 2024 02:25:52 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=gLoUYUrY; dmarc=none; spf=none (imf08.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=1708136753; 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=S8nD4vbdK7S1c96UnUq9hUR/PZMJuUTm+SmBC6+SzBM=; b=rdb7R6LZB4QDe4m0e9aATLrjTikw1zygyp11MgHyEzrvZSzW9ejU7kcbhGccrmXpBl9T8C vt7/Yg9c6+ewbdCzk0KO5INwnAHuSVB6t6kcoAhEibulYbr9VepUMroA4wqR1PAYsfNwfd Pti6fO30IG4ZuDB9ABMcj+f+I4wcnGk= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=gLoUYUrY; dmarc=none; spf=none (imf08.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=1708136753; a=rsa-sha256; cv=none; b=1DhV38URsozYb5FdK2I0vF79DBegN7hFIyY3ditPHtvc73BoHP8Xko2ZvQd90v1Ab5NZIK aBqGwOZxknML/y4DlNKVMz2dO9V6BDPTzAZ/GmXpigBOCG4oOSu/Xr8OMZujDWO+KQo1j4 1sXxd1ifa0YChfjDe65jqSCJCpHztEc= 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: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=S8nD4vbdK7S1c96UnUq9hUR/PZMJuUTm+SmBC6+SzBM=; b=gLoUYUrYCCSZg497kNzr66g9hG w+eLsONxqtwglu5Fk2tnY22nRiT7zELD3HSpxJ9i3NPk50K7omVEE1SnevBqscUzHAZsHkv9t0W+9 iRRp6lnH7xwZq3ugXxRy8MSkYahWUZg9FRkDVfuCIYKdKzDltJbBFWikH1LCesN2SIwBxQ5Z7t7oe H7wf5rQa2vMxRKuS9SVUJEbWLqtHKhdxj3l14A3tkGqs23/V6orWUR53to2iqYqizpijyaXIat9tO 3gEGxBVT4xmVvgndEmO0ellCPlRZ98sh363pDUzT9cYDBG5Uid2jtUNVZTN5JP4bsejB7awD0VWWq 2Rj8sttw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbAOj-00000006HE6-30Iz; Sat, 17 Feb 2024 02:25:49 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org Subject: [PATCH v2 15/18] mm: Remove lru_to_page() Date: Sat, 17 Feb 2024 02:25:41 +0000 Message-ID: <20240217022546.1496101-16-willy@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240217022546.1496101-1-willy@infradead.org> References: <20240217022546.1496101-1-willy@infradead.org> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: hkmec5dhtg8m7ta81kswz9r8ifot9b9s X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 2A160160004 X-HE-Tag: 1708136752-406356 X-HE-Meta: U2FsdGVkX1/FjADaDvi4C/LXT1hlv7JNRFVBE/W8tWFJeeeekMmfOQB4fnMf3jRRwP6MADFHsFN2eO86YS5Wdh85LLXZVwNrw8h4PQOpiz1s31a4VIpJLSfKW4Mqz6byKB/wIC5Ou3U+GIoLOkV0dI5Ezmr5JqsiqsBIHtLdpU87ubj06NbalbD7NQHL+/1BLhwzYZ/jfDgZ1Rk9MELUuvY4xAX3EIL6lEFFZ6+4tZ20V+IZWE/F7rYepkaGThSu3VdpNUFVYXLh35GFltmItxFViJW+1H9jbEYU6m1zoWJ7cGE2WcQ8RA0zWrJt+lbAEH3QdtE2rI1R7ifbgK9NC6oKN/mz9Ja8MzqxaWeKKDN3RElOjaz0/fLhGoHwnFmEgYQChxdZQg4IINSkrsJaI9aIDcMZPsQKdHnZPEtsoWgrdJdFxx/hq2U5qwo0keA8LJa1TaRePvNAAZYYKHeXdTkMeew032CpBw+fCObsGF1wU2p11AV5/vN31U9TNDE/qyIvY50By8SNt941rkCcjdXlxrHD9U/xBFPgBmdTmTJzIZNx9nJUg+5LSlA3I6plueK+68OSYdcOGYEPqwBGMRmA+5WNzDcHMorQ3jRs+PhOGeJjHtig17T3xY0BOtfMGmW+JN2M3nwWEHSbiu/MVt0gWlGZ++q5wq4QF9n/Raw7Lyb7N6/G4DcDH7sdVkQ1e/YJSOsyw+aq0FHhoFh8elHZ40RGNUUfAxnxt86VZawqEhz8yH6YTk1ljw+vcNO2KIzYQyqoGaehThYxVq1tDrY5IL880r82kSOtYiD3xi0QkAEkSVYiXXWNtgecD+tmB0AouBx4+Ooxy0p+qgxV+5eaOYrVyGiVXohtvJmkH4vgpO51D/ECqqxhRk8PB7qVtJI/HWsXmWj0W2Zh6GI9HkWTLYfNhiPh 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: The last user was removed over a year ago; remove the definition. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 2a1ebda5fb79..bb0ea42c2990 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -227,7 +227,6 @@ int overcommit_policy_handler(struct ctl_table *, int, void *, size_t *, /* test whether an address (unsigned long or pointer) is aligned to PAGE_SIZE */ #define PAGE_ALIGNED(addr) IS_ALIGNED((unsigned long)(addr), PAGE_SIZE) -#define lru_to_page(head) (list_entry((head)->prev, struct page, lru)) static inline struct folio *lru_to_folio(struct list_head *head) { return list_entry((head)->prev, struct folio, lru);