get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219516,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2219516/?format=api",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/1.0/projects/8/?format=api",
        "name": "Linux ext4 filesystem development",
        "link_name": "linux-ext4",
        "list_id": "linux-ext4.vger.kernel.org",
        "list_email": "linux-ext4@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260403082507.1882703-3-yebin@huaweicloud.com>",
    "date": "2026-04-03T08:25:06",
    "name": "[2/3] ext4: show inode orphan list detail information",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "98b532c697c699b479255e72b1c6afdbaf5a997b",
    "submitter": {
        "id": 85089,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/85089/?format=api",
        "name": "Ye Bin",
        "email": "yebin@huaweicloud.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260403082507.1882703-3-yebin@huaweicloud.com/mbox/",
    "series": [
        {
            "id": 498600,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/498600/?format=api",
            "date": "2026-04-03T08:25:07",
            "name": "show orphan file inode detail info",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498600/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219516/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <SRS0=YC0r=CC=vger.kernel.org=linux-ext4+bounces-15620-patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-ext4@vger.kernel.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "patchwork-incoming@ozlabs.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=yc0r=cc=vger.kernel.org=linux-ext4+bounces-15620-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c0a:e001:db::12fc:5321\"\n arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15620-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=45.249.212.51",
            "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com",
            "smtp.subspace.kernel.org;\n spf=none smtp.mailfrom=huaweicloud.com"
        ],
        "Received": [
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fnBp345YBz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 19:33:47 +1100 (AEDT)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fnBp31znVz4wSy\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 19:33:47 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fnBp31Zbgz4wT7; Fri, 03 Apr 2026 19:33:47 +1100 (AEDT)",
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4fnBnz07FTz4wSy\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 03 Apr 2026 19:33:43 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 81BAD304914B\n\tfor <patchwork-incoming@ozlabs.org>; Fri,  3 Apr 2026 08:27:32 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 18D24370D70;\n\tFri,  3 Apr 2026 08:27:32 +0000 (UTC)",
            "from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com\n [45.249.212.51])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id ADAD5332EBD\n\tfor <linux-ext4@vger.kernel.org>; Fri,  3 Apr 2026 08:27:29 +0000 (UTC)",
            "from mail.maildlp.com (unknown [172.19.163.170])\n\tby dggsgout11.his.huawei.com (SkyGuard) with ESMTPS id 4fnBf872S4zYQts0\n\tfor <linux-ext4@vger.kernel.org>; Fri,  3 Apr 2026 16:26:56 +0800 (CST)",
            "from mail02.huawei.com (unknown [10.116.40.128])\n\tby mail.maildlp.com (Postfix) with ESMTP id 533544056F\n\tfor <linux-ext4@vger.kernel.org>; Fri,  3 Apr 2026 16:27:22 +0800 (CST)",
            "from huaweicloud.com (unknown [10.50.87.132])\n\tby APP4 (Coremail) with SMTP id gCh0CgDHn0roec9pD5T6DA--.40142S6;\n\tFri, 03 Apr 2026 16:27:22 +0800 (CST)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1775205227; cv=pass;\n\tb=tor5uxYyRSGnAfJkUVyxaI6kyjKyz4t4gyY6LURrEiFAS+8Z5bWL9lQokYoqcmDknZxckhWbEpLPS2zopWEBo4oqa45U2jcsbv7CByp03HMgj6hqR7TtWhSG1HCA23MXFG4yIBK8k7qxPfAJ/Mm2Bf/DlOa+AwpYWy5+CBgXCAJTytk8EI2I2WLhtaAClOEqmn96AYLzup7bR+2ZIrwDZpWZFc6eNk79j3jAmR0twSUvkEqWgHRt6f6hjsGKcNeromRf85DaEz+jSPWDApp3oD3LLOldka99BLb+a+wNVblAzmhkqbTdk78B8XUKH3yCiLuJjYJ2DqB8lsnpw7t71w==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775204851; cv=none;\n b=pVDEs9NekQ2pASTO+spFRKJQWU5y9EHlmkO5WwnJwcwgwFPYoWs5uUADh5MSniU6XUpmM+3Wdz7wZuPq+/FELqEiAwulXp+3yby7fN4J53PTggHi8gxBBHfkI6XTqcKD73a9AerZRxx3U8nXtXncM2/AVrWKHNE2Ykmq5hZvNFA="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1775205227; c=relaxed/relaxed;\n\tbh=l+i6cz9A0fh5u8RbvQ4dNoHZKrntEKufb5VO8nFf9Ik=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=aIAqTBzm4NB2TnuviDZvgaw6k6jawXfz32JaVTXPcRSAWc0masOFryHwrZRaaowCa2GX0K6i8Ujq6mmljuObIjjKsUne9Fk8nhn6sWmBC74FGpss/RAW5aEpQA7KKQZ5uhN3Ql0j0z5d6crsLkrB+YNEnE7NJj/cFvSDAV+h/Z1W8mikQAotRFSD2fFtfKC1aR3ZpQRwymYluEkLA1bTtaeANDv7tAA/QKF2Ff0WybrKFrlUu0sao1wXC42qUC3xYTo+N92q8r4WsojbUjRJaK9VPIqhdkPZsjMQiOFWADNY3aTZLV8C4pFI4kF1rEi1bbA1TetxC8Oxm7O6D4XVxQ==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775204851; c=relaxed/simple;\n\tbh=CjtkAc4EO1LkIlSvIhzwjEc17aJZLHMxj9rtizpySq0=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=LKGn/v6kMvARazh2Rp68Fq86rtLaa71rwAU2HHIBNGLiqaCuyFos80MGX1QPcIr8nQO6jclEzqs7TtkEWMm5PmX1qAB5MMUtncV3FwSn7KBZ4pBaC5tkXlTBt4Ytd9y2kKRHmxhj2bbAVwmFSN36AkJ1HTfhx2fQlfK4T270N58="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com;\n spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15620-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com;\n spf=none smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.51"
        ],
        "From": "Ye Bin <yebin@huaweicloud.com>",
        "To": "tytso@mit.edu,\n\tadilger.kernel@dilger.ca,\n\tlinux-ext4@vger.kernel.org",
        "Cc": "jack@suse.cz",
        "Subject": "[PATCH 2/3] ext4: show inode orphan list detail information",
        "Date": "Fri,  3 Apr 2026 16:25:06 +0800",
        "Message-Id": "<20260403082507.1882703-3-yebin@huaweicloud.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260403082507.1882703-1-yebin@huaweicloud.com>",
        "References": "<20260403082507.1882703-1-yebin@huaweicloud.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-ext4@vger.kernel.org",
        "List-Id": "<linux-ext4.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-CM-TRANSID": "gCh0CgDHn0roec9pD5T6DA--.40142S6",
        "X-Coremail-Antispam": "1UD129KBjvJXoWxJFy3Zr1kur48Jr1DGry5twb_yoWrGr43pF\n\tW5J34rAa1rWF93WF4fJF4UZFn3K3WxG3y7Xr9a93yYqryUXrWktF18t3WUZFy5ArW8Gwn0\n\tqws0gFy5Kr18urJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2\n\t9KBjDU0xBIdaVrnRJUUUvGb4IE77IF4wAFF20E14v26ryj6rWUM7CY07I20VC2zVCF04k2\n\t6cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI8067AKxVWUXw\n\tA2048vs2IY020Ec7CjxVAFwI0_JFI_Gr1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS\n\tw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV\n\tW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v2\n\t6rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMc\n\tIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_\n\tJr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr\n\t0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY\n\t17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcV\n\tC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY\n\t6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa\n\t73UjIFyTuYvjxUzMKuUUUUU",
        "X-CM-SenderInfo": "p1hex046kxt4xhlfz01xgou0bp/",
        "X-Spam-Status": "No, score=-1.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDMARC_MISSING,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "content": "From: Ye Bin <yebin10@huawei.com>\n\nSome inodes added to the orphan list are due to truncation, while others\nare due to deletion.Therefore, we printed the information of inode as\nfollows: inode number/i_nlink/i_size/i_blocks/projid/file path. By using\nthis information, it is possible to quickly identify files that have been\ndeleted but are still being referenced.\n\nSigned-off-by: Ye Bin <yebin10@huawei.com>\n---\n fs/ext4/orphan.c | 88 ++++++++++++++++++++++++++++++++++++++++++++++--\n 1 file changed, 86 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/fs/ext4/orphan.c b/fs/ext4/orphan.c\nindex 1d231aeaf282..272de32d1a47 100644\n--- a/fs/ext4/orphan.c\n+++ b/fs/ext4/orphan.c\n@@ -662,25 +662,108 @@ int ext4_orphan_file_empty(struct super_block *sb)\n \n struct ext4_proc_orphan {\n \tstruct ext4_inode_info cursor;\n+\tbool print_title;\n };\n \n-static void *ext4_orphan_seq_start(struct seq_file *seq, loff_t *pos)\n+static inline bool ext4_is_cursor(struct ext4_inode_info *inode)\n+{\n+\treturn (inode->vfs_inode.i_ino == 0);\n+}\n+\n+static struct inode *ext4_list_next(struct list_head *head, struct list_head *p)\n {\n+\tstruct ext4_inode_info *inode;\n+\n+\tlist_for_each_continue(p, head) {\n+\t\tinode = list_entry(p, typeof(*inode), i_orphan);\n+\t\tif (!ext4_is_cursor(inode))\n+\t\t\treturn &inode->vfs_inode;\n+\t}\n+\n \treturn NULL;\n }\n \n+static void *ext4_orphan_seq_start(struct seq_file *seq, loff_t *pos)\n+{\n+\tstruct ext4_proc_orphan *s = seq->private;\n+\tstruct super_block *sb = pde_data(file_inode(seq->file));\n+\tstruct ext4_sb_info *sbi = EXT4_SB(sb);\n+\tstruct list_head *prev;\n+\n+\tmutex_lock(&sbi->s_orphan_lock);\n+\n+\tif (!*pos) {\n+\t\tprev = &sbi->s_orphan;\n+\t} else {\n+\t\tprev = &s->cursor.i_orphan;\n+\t\tif (list_empty(prev))\n+\t\t\treturn NULL;\n+\t}\n+\n+\treturn ext4_list_next(&sbi->s_orphan, prev);\n+}\n+\n static void *ext4_orphan_seq_next(struct seq_file *seq, void *v, loff_t *pos)\n {\n-\treturn NULL;\n+\tstruct super_block *sb = pde_data(file_inode(seq->file));\n+\tstruct ext4_sb_info *sbi = EXT4_SB(sb);\n+\tstruct inode *inode = v;\n+\n+\t++*pos;\n+\n+\treturn ext4_list_next(&sbi->s_orphan, &EXT4_I(inode)->i_orphan);\n+}\n+\n+static void ext4_show_filename(struct seq_file *seq, struct inode *inode)\n+{\n+\tstruct dentry *dentry;\n+\n+\tdentry = d_find_alias(inode);\n+\tif (!dentry)\n+\t\tdentry = d_find_any_alias(inode);\n+\n+\tif (dentry)\n+\t\tseq_dentry(seq, dentry, \"\\t\\n\\\\\");\n+\telse\n+\t\tseq_puts(seq, \"unknown\");\n+\n+\tdput(dentry);\n+\tseq_putc(seq, '\\n');\n }\n \n static int ext4_orphan_seq_show(struct seq_file *seq, void *v)\n {\n+\tstruct inode *inode = v;\n+\tstruct ext4_proc_orphan *s = seq->private;\n+\n+\tif (s->print_title) {\n+\t\tseq_puts(seq, \"INO\\tNLINK\\tSIZE\\tBLOCKS\\tPROJID\\tPATH\\n\");\n+\t\ts->print_title = false;\n+\t}\n+\n+\tseq_printf(seq, \"%llu\\t%u\\t%llu\\t%llu\\t%u\\t\",\n+\t\t   inode->i_ino, inode->i_nlink,\n+\t\t   i_size_read(inode), inode->i_blocks,\n+\t\t   __kprojid_val(EXT4_I(inode)->i_projid));\n+\n+\text4_show_filename(seq, inode);\n+\n \treturn 0;\n }\n \n static void ext4_orphan_seq_stop(struct seq_file *seq, void *v)\n {\n+\tstruct super_block *sb = pde_data(file_inode(seq->file));\n+\tstruct ext4_sb_info *sbi = EXT4_SB(sb);\n+\tstruct inode *inode = v;\n+\tstruct ext4_proc_orphan *s = seq->private;\n+\n+\tif (inode)\n+\t\tlist_move_tail(&s->cursor.i_orphan, &EXT4_I(inode)->i_orphan);\n+\telse\n+\t\tlist_del_init(&s->cursor.i_orphan);\n+\n+\tmutex_unlock(&sbi->s_orphan_lock);\n }\n \n const struct seq_operations ext4_orphan_seq_ops = {\n@@ -703,6 +786,7 @@ static int ext4_seq_orphan_open(struct inode *inode, struct file *file)\n \t\tprivate = m->private;\n \t\tINIT_LIST_HEAD(&private->cursor.i_orphan);\n \t\tprivate->cursor.vfs_inode.i_ino = 0;\n+\t\tprivate->print_title = true;\n \t}\n \n \treturn rc;\n",
    "prefixes": [
        "2/3"
    ]
}