From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34B4A1E7C1F for ; Fri, 24 Jan 2025 21:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737754704; cv=none; b=oijr56cXzPHW49ycl+ncYTqZkGIVhY3X5oniGw3NPrf2pXpWErsAdbhvF1VL74FKBkbA7Yuo4kADVVyELTIPf6YGCz64UlS6gy0Gj3Dc13JD61BpXBr19KtpWR9n34x8l5qeszRKxiUmpl3bQovVC8d9NmKx1WZm3SHAX8V4wa4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737754704; c=relaxed/simple; bh=ncA9crD3DINVbzRqLtoT7f7dUPsAwyvD8ri7zhJ7Dfo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GRBXzwRD50OEutp9bbKBvnv+7q+IaeGQRe6b4Jcs6yL/cksCCSVDDuE2CxI3C7p5X/yH2wj50xBa8JoSAbM+p7RGksP4U0623y2I7n5hLvlrPTpqZ7+tqoFA5l+XwIyTr1V9kk4KMc0GnALhjnpZ+3HHHZTee1MpPrTKkcktqT8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=aMpARsqF; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aMpARsqF" 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 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: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 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 --- include/linux/page_ext.h | 7 ------- 1 file changed, 7 deletions(-) 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; -- 2.47.1