get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/2219943/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2219943,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2219943/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260405125240.2558577-19-songmuchun@bytedance.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<20260405125240.2558577-19-songmuchun@bytedance.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260405125240.2558577-19-songmuchun@bytedance.com/",
    "date": "2026-04-05T12:52:09",
    "name": "[18/49] mm/mm_init: make __init_page_from_nid() static",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4aed8778be10b884630c4e73dce983081176f266",
    "submitter": {
        "id": 78930,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/78930/?format=api",
        "name": "Muchun Song",
        "email": "songmuchun@bytedance.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260405125240.2558577-19-songmuchun@bytedance.com/mbox/",
    "series": [
        {
            "id": 498783,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/498783/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=498783",
            "date": "2026-04-05T12:51:51",
            "name": "mm: Generalize vmemmap optimization for DAX and HugeTLB",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498783/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219943/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219943/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-19348-incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bytedance.com header.i=@bytedance.com\n header.a=rsa-sha256 header.s=google header.b=hNp3kjb/;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19348-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2607:f8b0:4864:20::1034\"",
            "lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=bytedance.com",
            "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bytedance.com header.i=@bytedance.com\n header.a=rsa-sha256 header.s=google header.b=hNp3kjb/;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=bytedance.com\n (client-ip=2607:f8b0:4864:20::1034; helo=mail-pj1-x1034.google.com;\n envelope-from=songmuchun@bytedance.com; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fpXW752lxz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 05 Apr 2026 22:55:31 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fpXVx4kq1z3bWX;\n\tSun, 05 Apr 2026 22:55:21 +1000 (AEST)",
            "from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com\n [IPv6:2607:f8b0:4864:20::1034])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fpXVw6B1yz2yjw\n\tfor <linuxppc-dev@lists.ozlabs.org>; Sun, 05 Apr 2026 22:55:20 +1000 (AEST)",
            "by mail-pj1-x1034.google.com with SMTP id\n 98e67ed59e1d1-35da9692ec3so2875369a91.1\n        for <linuxppc-dev@lists.ozlabs.org>;\n Sun, 05 Apr 2026 05:55:20 -0700 (PDT)",
            "from n232-176-004.byted.org ([36.110.163.97])\n        by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-35de66b4808sm3748505a91.2.2026.04.05.05.55.12\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sun, 05 Apr 2026 05:55:18 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775393721;\n\tcv=none;\n b=TxKrQNzkuLjCnj1YinIX1lQ4dACgmfRJs3QVlpnxpTnhpLahQHi1qF1cDsIFrR4anB7C9EkUQSxXMsQ5d74kGnHtoPSPhHbrt5UNNVUeTwdLubap7VaCATRMaIGJJ4NAfWLBEwi49wHXKv3pIaKi9Twhx3/5fJCOEQrqjNLB3cdm2kCqKDeBJD8Sds081OBNyf+JNC2plsRiGY8bhhIgBQnmvrZDg8BfPPpeoPXwdvcyycZNUWeCVJeJi2bGptb0oE5+NA9dGKHBBtIukazzmdzoso5/eGpjDuzoppGVU92J1RGcveXTuA58uZyT+ALQ7nLktxIODkPtpfiV/ELwQg==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775393721; c=relaxed/relaxed;\n\tbh=VJ1CmGSdxm9qljCoiKFVSLrEpkjzI4pVEVcuHUoMZpY=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=LUUi352l7To7mXt/yLJKdIbtbOPuKM6Bv90YHtu0K1SbmBETYZdcdLyw6v7GTFKcZA4rYHVlCKB7O0BqKqoln2iNemLbq+Z2qvniM1+JuCcdlkxE/TsNDTRuu+r8ny0JoDkSkN9Uh4KQasHKiYu7ACUTIlHzn/LqLhmR4woA4SIqV0314f8hBuYTDWAtSePFr1LTBcSmMAxheLW/GFcPZtsUCEJSd1JPtEALZ9ptszba6JvGpxS7YpL3SCujB/780c9XIvC5StKAGWAdgVN0Id9jG1SbvAOg88pRC8I3EEKmCwD5+PpxL8g6yzlri6nTZrc/itbcNj00INly5MxWdA==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=bytedance.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=bytedance.com header.i=@bytedance.com\n header.a=rsa-sha256 header.s=google header.b=hNp3kjb/; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::1034; helo=mail-pj1-x1034.google.com;\n envelope-from=songmuchun@bytedance.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=bytedance.com",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=bytedance.com; s=google; t=1775393719; x=1775998519;\n darn=lists.ozlabs.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=VJ1CmGSdxm9qljCoiKFVSLrEpkjzI4pVEVcuHUoMZpY=;\n        b=hNp3kjb/542R8VhHRzaM7JbiQiI9xsplhySBeZAMW1ftqp+bJmFsMlwgQ8T66Fw4vH\n         CCBFFJw3Fdesy+ECFfx9uKXJcKjKEFkWLJ/X/Kw6ZLpKHACYaBFEVFV2NBlZfBUTeTwj\n         lO7DPdN2kjcbQdc2MEthwuPvU8XJW0Dov6mGYEsbcmN32ulyTttOY1qlJ2jDVz6QasGW\n         X1t4I26T4UxhElusi63D3zDW3eomOxvE+q/ngC/LBjK7xj2s6j0AnqLEqckxpsFY3IGt\n         9HxOrjqMI81JKiHpARvkCerDQmNyxpOAYOdNHzdlajhne4MFkS5pjFh+rEa+B07jy1eZ\n         BOaA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775393719; x=1775998519;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=VJ1CmGSdxm9qljCoiKFVSLrEpkjzI4pVEVcuHUoMZpY=;\n        b=jis2fIUMsnOgJCTykRM7nL6Q5yolA5VHAqW6MHtl04/fARiZGHsyf9IsBWpOEGB5E8\n         R8VEFW64wy3UUz4z0CSrXa7B4oK6Rd6z8ZMlAAjk0X1uf8/1ImCV3aV2UVyCtENiYMcd\n         mjqruRJ51Wb558U6l3VKZCyaa7JCd8WM+nzFLlqG70UmRpYUo2RdFK1bflmYiOo5NF/O\n         rAGYRKNmyKyLG7tubcq2VbsESZPSgXh8hZP55IeuVwdu3+f8DkTagxZRuJuaiKPnX+G4\n         0ueEu7xbUNMDBRUVD3DnqS6fEgbWTScEAw7K8yYXaoIii4NcRSag+ZVRncWSehAC47fT\n         MzOg==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCWn/M1oVDI33HXCKUJpltLV0VajqI7yOfggjBgv1wFtU+t9MafPdcQ3zgmDe1B8ELwsj2rGhDmL7I6GOfM=@lists.ozlabs.org",
        "X-Gm-Message-State": "AOJu0YxvW4za7ytMNNlNhSEpcf1Dt3ScryGE4pp2GViE0Hfk+Uhdnj9W\n\t3dyS3lLZoDgvFjCu/PckZXySr/PpmlXKtaAldnr0haD5U1p73MD2z6nGPjIB+2Y0ARQ=",
        "X-Gm-Gg": "AeBDietfA0MQYTcOJ/pMP/GPHsMaQyZKHgyEnET6BJ4M3tUmfF70lPRuDg31VSQ64hm\n\tuCHwRQGu9qMivS4vL671Zsq0XYWObxCmo4CRgcheXtKiRdtL3YeGHjJcvKjmjH5KoFiBBhoq7BG\n\tnkDK7BmChlL40IzCFw1keDYcgU0pIeRfV0gnKIRPbYLLj8tVG9pbkk5bUlaDzxZ+Z9yOgz4Knpk\n\tj2NwyMtGmKnV/UfJ8yzjJMDONZfGjX8gQmXCj+Lv6BwoAsSzsjlXOawH029m1tJtAH5gtAPTcbe\n\tsQaZxBdVCeP+GPmnMdUf7hGQWJ0hdu0f6L1rGRCyN/ncGN3RCvwER9E5aooAApu4eGM/PV7YPaw\n\ttcDNPYOJFqNYSGYb5JzET95pJ01eTk24EL/dq3f0DatKJBwue+VD8KA9hIJZnWKsVBcEsGBmqK/\n\tY8bTvXOuhhTtKz86tQpdn+nOCCsTR+OKhgUxz61rUeHE4=",
        "X-Received": "by 2002:a17:90b:268a:b0:35b:8d89:7199 with SMTP id\n 98e67ed59e1d1-35de68ec6eemr8630177a91.15.1775393718992;\n        Sun, 05 Apr 2026 05:55:18 -0700 (PDT)",
        "From": "Muchun Song <songmuchun@bytedance.com>",
        "To": "Andrew Morton <akpm@linux-foundation.org>,\n\tDavid Hildenbrand <david@kernel.org>,\n\tMuchun Song <muchun.song@linux.dev>,\n\tOscar Salvador <osalvador@suse.de>,\n\tMichael Ellerman <mpe@ellerman.id.au>,\n\tMadhavan Srinivasan <maddy@linux.ibm.com>",
        "Cc": "Lorenzo Stoakes <ljs@kernel.org>,\n\t\"Liam R . Howlett\" <Liam.Howlett@oracle.com>,\n\tVlastimil Babka <vbabka@kernel.org>,\n\tMike Rapoport <rppt@kernel.org>,\n\tSuren Baghdasaryan <surenb@google.com>,\n\tMichal Hocko <mhocko@suse.com>,\n\tNicholas Piggin <npiggin@gmail.com>,\n\tChristophe Leroy <chleroy@kernel.org>,\n\taneesh.kumar@linux.ibm.com,\n\tjoao.m.martins@oracle.com,\n\tlinux-mm@kvack.org,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org,\n\tMuchun Song <songmuchun@bytedance.com>",
        "Subject": "[PATCH 18/49] mm/mm_init: make __init_page_from_nid() static",
        "Date": "Sun,  5 Apr 2026 20:52:09 +0800",
        "Message-Id": "<20260405125240.2558577-19-songmuchun@bytedance.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20260405125240.2558577-1-songmuchun@bytedance.com>",
        "References": "<20260405125240.2558577-1-songmuchun@bytedance.com>",
        "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org",
        "List-Id": "<linuxppc-dev.lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>",
        "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>",
        "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>",
        "Precedence": "list",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "Since last commit removed the only external user of __init_page_from_nid(),\nthis function is now only used locally within mm/mm_init.c under the\nCONFIG_DEFERRED_STRUCT_PAGE_INIT block.\n\nMake __init_page_from_nid() static, move it inside the\nCONFIG_DEFERRED_STRUCT_PAGE_INIT block to clean up the code.\n\nSigned-off-by: Muchun Song <songmuchun@bytedance.com>\n---\n mm/internal.h | 1 -\n mm/mm_init.c  | 4 ++--\n 2 files changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/mm/internal.h b/mm/internal.h\nindex 8232084f0c5e..a8acabcd1d93 100644\n--- a/mm/internal.h\n+++ b/mm/internal.h\n@@ -1755,7 +1755,6 @@ static inline bool pte_needs_soft_dirty_wp(struct vm_area_struct *vma, pte_t pte\n \n void __meminit __init_single_page(struct page *page, unsigned long pfn,\n \t\t\t\tunsigned long zone, int nid);\n-void __meminit __init_page_from_nid(unsigned long pfn, int nid);\n \n /* shrinker related functions */\n unsigned long shrink_slab(gfp_t gfp_mask, int nid, struct mem_cgroup *memcg,\ndiff --git a/mm/mm_init.c b/mm/mm_init.c\nindex 7a710fcbe3c8..977a837b7ef6 100644\n--- a/mm/mm_init.c\n+++ b/mm/mm_init.c\n@@ -686,10 +686,11 @@ static __meminit void pageblock_migratetype_init_range(unsigned long pfn,\n \t}\n }\n \n+#ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT\n /*\n  * Initialize a reserved page unconditionally, finding its zone first.\n  */\n-void __meminit __init_page_from_nid(unsigned long pfn, int nid)\n+static void __meminit __init_page_from_nid(unsigned long pfn, int nid)\n {\n \tpg_data_t *pgdat;\n \tint zid;\n@@ -709,7 +710,6 @@ void __meminit __init_page_from_nid(unsigned long pfn, int nid)\n \t\t\t\tfalse);\n }\n \n-#ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT\n static inline void pgdat_set_deferred_range(pg_data_t *pgdat)\n {\n \tpgdat->first_deferred_pfn = ULONG_MAX;\n",
    "prefixes": [
        "18/49"
    ]
}