Message ID | 3604c0ceeb0942b25ef645f4b74154c0122149f4.1737754625.git.luizcap@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 8C0F2C02181 for <linux-mm@archiver.kernel.org>; Fri, 24 Jan 2025 21:38:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1FDCC28008E; Fri, 24 Jan 2025 16:38:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 112EC280077; Fri, 24 Jan 2025 16:38:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E7F7528008E; Fri, 24 Jan 2025 16:38:24 -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 C5DC3280077 for <linux-mm@kvack.org>; Fri, 24 Jan 2025 16:38:24 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 79DA3141838 for <linux-mm@kvack.org>; Fri, 24 Jan 2025 21:38:24 +0000 (UTC) X-FDA: 83043659328.05.77BDF40 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf08.hostedemail.com (Postfix) with ESMTP id B789316001D for <linux-mm@kvack.org>; Fri, 24 Jan 2025 21:38:22 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=aMpARsqF; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf08.hostedemail.com: domain of luizcap@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=luizcap@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737754702; a=rsa-sha256; cv=none; b=kz4I2C5mDRLlz5hoXq2YD2jPUmaCsXOHBOO3pn29TFGNfl6amO6Aqc/trNvb90qI2k/ktt Qg2OQrKIKjLqfwiwzuw2u6Xeqd8lU/vAbmUXuysYZyW5LTcs70PwBy7SWvp87Yyx3hlpkf ToTs2nPZYzGgzgwAux4WFm5GNPJknuw= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=aMpARsqF; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf08.hostedemail.com: domain of luizcap@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=luizcap@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1737754702; 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=f0R/RjNUfg0XRwtqhdLZpjGZZp5v7kFJ6of5fRAQFs8=; b=8GD96rMd4n4cF2HXBDZFOkIPLSLKU489mHZlSXDwgPVlMQtO6Qlu4kP1LB7zbBS/J8W2qA PgqngKFtYtvr4p4E3z5G/T7g0cR10jtihGG+q0bmooiK69M/AOy6/4Q8gF3a8B4JjCQOZj ktDeZCPyVjLvBS5WDdgYku3DjueyuQI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1737754702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f0R/RjNUfg0XRwtqhdLZpjGZZp5v7kFJ6of5fRAQFs8=; b=aMpARsqFZp6LA2OrzJzPu0A3yp0ZWdZpfXCRCNkOry1aKt6cTV1jxppYlydy4xxT6yfMvu ++EVmCceDVuahpD01bBIEId/PIVcrM7c2K/OeXkg2IPRMyxXLDmwYijuRRJh02OxH25uu+ 3iIguOmvyJbqPAHTgvl8k9koJbYma6M= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-614-2E4ptrrdPoGF2gRstTT0zw-1; Fri, 24 Jan 2025 16:38:17 -0500 X-MC-Unique: 2E4ptrrdPoGF2gRstTT0zw-1 X-Mimecast-MFC-AGG-ID: 2E4ptrrdPoGF2gRstTT0zw Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D42F6180034D; Fri, 24 Jan 2025 21:38:14 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.81.148]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 244AD1800348; Fri, 24 Jan 2025 21:38:13 +0000 (UTC) From: Luiz Capitulino <luizcap@redhat.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, david@redhat.com, yuzhao@google.com Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, muchun.song@linux.dev, lcapitulino@gmail.com, luizcap@redhat.com Subject: [RFC 4/4] mm: page_ext: drop page_ext_next() Date: Fri, 24 Jan 2025 16:37:54 -0500 Message-ID: <3604c0ceeb0942b25ef645f4b74154c0122149f4.1737754625.git.luizcap@redhat.com> In-Reply-To: <cover.1737754625.git.luizcap@redhat.com> References: <cover.1737754625.git.luizcap@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: B789316001D X-Stat-Signature: bdyxd3xy1sbug9iqo8rzprp75y6zjh4w X-HE-Tag: 1737754702-786456 X-HE-Meta: U2FsdGVkX1/Lelob0ujOcmPjInAz95KrLwNEoFQ+nkWQQkesVY5vof4WFiDovufm9LstaF+1hli6NMW6gsuMYJsYPezdqMrN9c37Ly8u4W0BY+EaIUgEhkP8sEB0qhjRWVW8UcHtut8JSYF9osrHuDauRgWAnX3Z6WC69xBj8mx+4uQ5AQ60UEXDeTu0DOmenNtNiPTg7Zl1zr0SZiuk+pdJEoAhMoarhfZdUv4AQ0DcY3A4vz/ThRhOUSLZUTUx7+EcGvNrRlhFW7KcfrqPKOifGa5sDZHDZyKcyefp8Rxon5AdyXDnmncnQWMmZ3p/6RLH8u797PDOZv4UhuA+0YfctInJ9Bv7h9pGGv94pf+d14SQnaNmRGfURVIBcZig1tPsMQU1AlvX3I5K0YKCLk26UAQAeL01wQxdDVVEcvqkfMHorR8Y7GkFZB2KUK/GZ6Kd/qz/RcXWNQgaQOSIgh1UNWnp07OVO3VMl5NB0SvFrZoS7mgMSBugocAazIChRM8ssZ4VChI7gYvvLn5oTKbtm7IsDfo05PscqfspNhAV4qFV7+HNS0cp0rOR5x5kmOuZgCmXs7JU+XR+A9ise8SozUSk3jZCnFOw7OO+YvYd1J/3fNwKLd+TqgfCup2FYsehEDg4MrIHoAt9I24DAdHkqEE4ap2PTWNM6K7o3irzxtvv9xTYaCgWvuGaV05dfMyAObKHz2tmtJHGw3/IubJM57xQ1cYgFSwfQmhWiDswrhrSyCAO2IAaklgwgxXPBbD3/uaosTX5qtPqkU2J3WjTR0fQeYJIrgNh8qtVXu4nSTSlrl0SbgyuKG1U7UZ/3emE9JsG0rJmQ9JNeR0N6Fb5FYwxLp0xMKLhKdzZuzk90EvSxDgWbl2hPKpMhrulVt+org6ASotxDJmHmpHcSWx9NvmZNYkFXVhBtwD8ajp4PUzE4Ng+cnYYNprDM1ud4hghjFgOLifUXjNh4MT fVXoB+EF EHiJ7LxmCcCtjyMb/Nsrm05hf4wQ/QRCjRRXTQnEn1QTY8pH+hI8WCeJ+ORqsKqAaKKI46oMTYXAGMmnGvV1g3BWsUcFRA8sUTJwpekiGJs6JkXgoDquH9G3+66+QY600kDQ0FlqnqWcZiTgs1tdln/7RhYOazOaPux10WjMtOjd29+mJ2ZdUopEJ9q/77EUEEsFTy/BKcoc8oyNyexl2qkO/D0Q3uS3HLvOMn36N/Qii8xk4cxvKzd/9VpgCAhlgE8cekw8zSb5tSZutml9T6gzVjSHqxjlYTrpcvwnG4yD5ZP2aPHL50KgTev1J6bC+utLBm6VpvuCH47nSMTHIckATRy0lqqEcUuerg9lvJCM9E5tSFxGf9HZrDA== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series | mm: page_ext: Fix crash when reserving 1G pages | expand |
diff --git a/include/linux/page_ext.h b/include/linux/page_ext.h index df904544d3fac..4bbc6638fe14f 100644 --- a/include/linux/page_ext.h +++ b/include/linux/page_ext.h @@ -86,13 +86,6 @@ static inline void *page_ext_data(struct page_ext *page_ext, return (void *)(page_ext) + ops->offset; } -static inline struct page_ext *page_ext_next(struct page_ext *curr) -{ - void *next = curr; - next += page_ext_size; - return next; -} - struct page_ext_iter { unsigned long pfn; struct page_ext *page_ext;
Previous commits converted users to the new page extension iteration API. TODO: We can use this implementation for flatmem. Fixes: e98337d11bbd ("mm/contig_alloc: support __GFP_COMP") Signed-off-by: Luiz Capitulino <luizcap@redhat.com> --- include/linux/page_ext.h | 7 ------- 1 file changed, 7 deletions(-)