get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216836,
    "url": "http://patchwork.ozlabs.org/api/patches/2216836/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260327102939.1095257-5-yi.zhang@huaweicloud.com/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/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,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260327102939.1095257-5-yi.zhang@huaweicloud.com>",
    "list_archive_url": null,
    "date": "2026-03-27T10:29:30",
    "name": "[v4,04/13] ext4: rename ext4_block_zero_page_range() to ext4_block_zero_range()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ca0907f0a69f070e9175226d7674da86229f1062",
    "submitter": {
        "id": 85428,
        "url": "http://patchwork.ozlabs.org/api/people/85428/?format=api",
        "name": "Zhang Yi",
        "email": "yi.zhang@huaweicloud.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260327102939.1095257-5-yi.zhang@huaweicloud.com/mbox/",
    "series": [
        {
            "id": 497742,
            "url": "http://patchwork.ozlabs.org/api/series/497742/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=497742",
            "date": "2026-03-27T10:29:26",
            "name": "ext4: refactor partial block zero-out for iomap conversion",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/497742/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216836/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216836/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=Zy/+=B3=vger.kernel.org=linux-ext4+bounces-15488-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=zy/+=b3=vger.kernel.org=linux-ext4+bounces-15488-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.232.135.74 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=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15488-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=45.249.212.56",
            "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com",
            "smtp.subspace.kernel.org;\n spf=pass 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 4fhxrk3JHDz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 21:36:22 +1100 (AEDT)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fhxrk34TKz4wSZ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 21:36:22 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fhxrk2wTPz4wSb; Fri, 27 Mar 2026 21:36:22 +1100 (AEDT)",
            "from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\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 gandalf.ozlabs.org (Postfix) with ESMTPS id 4fhxrf5dKBz4wSZ\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 27 Mar 2026 21:36:18 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id EDD7D302DD7B\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 27 Mar 2026 10:35:40 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 409913DD517;\n\tFri, 27 Mar 2026 10:34:41 +0000 (UTC)",
            "from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com\n [45.249.212.56])\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 4D8F238CFFF;\n\tFri, 27 Mar 2026 10:34:34 +0000 (UTC)",
            "from mail.maildlp.com (unknown [172.19.163.170])\n\tby dggsgout12.his.huawei.com (SkyGuard) with ESMTPS id 4fhxnp3jyyzKHMbd;\n\tFri, 27 Mar 2026 18:33:50 +0800 (CST)",
            "from mail02.huawei.com (unknown [10.116.40.112])\n\tby mail.maildlp.com (Postfix) with ESMTP id 3102840570;\n\tFri, 27 Mar 2026 18:34:32 +0800 (CST)",
            "from huaweicloud.com (unknown [10.50.85.155])\n\tby APP1 (Coremail) with SMTP id cCh0CgC3utouXcZp_T2cCQ--.28730S8;\n\tFri, 27 Mar 2026 18:34:31 +0800 (CST)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774607782; cv=pass;\n\tb=o129NVxHEAIYiVcocLmCInVyepDx1JZaqNQpQf1W8SYallx10rSf0wlsI54K89G7STI0ysDBQm/gTI0rqeCsv7+kMjlltAIiS+VYxxs/ilC2aGcBWfmu5EulVMDE9FPkusHGXfvFTigrVy/2FmMnTfO9Pqy+WADbkRmWK5eDDBElfcP8k476EmlOSY3hL5qweZZe/aIQMWfl0Qrh3z2eA63t4H4jRcDca20vWtq5Sms+eZPwzsL0zWgFcHM6eeRJ7QOptRqgbXu2M4iOQUZVJgXQsOeZPJj+vpfH74RVx4cyzAJrQZnPm7ldwiAWP1pLGuYY3bqUMbz55C0/7yqR4A==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774607680; cv=none;\n b=Nlo3ZbrSQHprbWv/3skqZzhGjiFwlPRiiNAJnziJfkayVidtWfhEm7s1YvGVBPjwyBqGfD7BNZ1P8YJSiOr9wXyvbbp0nW/2Y7EV/bYcSgXtNOv7SARqKogQ2qMo0hqUtUuow6u3+BonWVaP3P6E/gMhz7teOz/UBSqH6pP13LQ="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774607782; c=relaxed/relaxed;\n\tbh=SnOho2GCWIMeALXQ9hvXD5yu+6paCdNufGVPrOmt62o=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=AnrdBcKnfRj9ftkJCEiQ+ADA13SGI0KI00Qyl61dl1HmEE/M1FvqjNvaLh6nyCWsgdqpcrN8cDI1sJzIrZCIZknOVMlIYW5ArfGM1GXixedxyBQdp8mzaw6C9BysfrXXqcGAsyDv8Cf0nJAxX+3ZoI370CBEwtUIEqfxhx3fMtJgk8krTEaSzE+aBz0ipZoO6VK+tjBKcdZJb8+pEfyqzk8thhETPzG/SZoCh/odsEJaHu0qGE0WjHRKrof9lSB/e+Cx7L8ZPTCwvs+iUkn2hQS8nD242xlkr18Cb5zt25UjgCY/jxRHlUmicttcURfsQvfN9e+ubSiD8bN8XdkYlA==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774607680; c=relaxed/simple;\n\tbh=fMVXrpHueNdqeZTWFLtA8gyGmQHMRbTNJ3pFGiLRrRc=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=m4KVKyUUuExSez7s5/x+BWNU6LrxG1l3JMbEk5/4uVbjH4FQu3t/eXgIjAoxCAJt86NJvoyFj8cte+g0ftdkKjWMDRf+kSsuv+IjFjgLHPbn1mbHZlau7PhcMZZ5DsuTo8j03/PoQ9GgwfW/RczFvoIQoQtz79CinejkPnc73rY="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com;\n spf=pass (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15488-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=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.56"
        ],
        "From": "Zhang Yi <yi.zhang@huaweicloud.com>",
        "To": "linux-ext4@vger.kernel.org",
        "Cc": "linux-fsdevel@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\ttytso@mit.edu,\n\tadilger.kernel@dilger.ca,\n\tjack@suse.cz,\n\tojaswin@linux.ibm.com,\n\tritesh.list@gmail.com,\n\tlibaokun@linux.alibaba.com,\n\tyi.zhang@huawei.com,\n\tyi.zhang@huaweicloud.com,\n\tyizhang089@gmail.com,\n\tyangerkun@huawei.com,\n\tyukuai@fnnas.com",
        "Subject": "[PATCH v4 04/13] ext4: rename ext4_block_zero_page_range() to\n ext4_block_zero_range()",
        "Date": "Fri, 27 Mar 2026 18:29:30 +0800",
        "Message-ID": "<20260327102939.1095257-5-yi.zhang@huaweicloud.com>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20260327102939.1095257-1-yi.zhang@huaweicloud.com>",
        "References": "<20260327102939.1095257-1-yi.zhang@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": "cCh0CgC3utouXcZp_T2cCQ--.28730S8",
        "X-Coremail-Antispam": "1UD129KBjvJXoWxAw1fCr1rWF4DKF18tr43Wrg_yoW5try5pr\n\ty3tw15ur47W34v9a1xWF17Xr1Ik3Z3GFW8Xry7WryFv39xX3WfKF95K3Z5XF4jg3yxAa40\n\tqF4Yyry2gw17AFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2\n\t9KBjDU0xBIdaVrnRJUUUmI14x267AKxVWrJVCq3wAFc2x0x2IEx4CE42xK8VAvwI8IcIk0\n\trVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2048vs2IY020E87I2jVAFwI0_JF0E3s1l82xGYI\n\tkIc2x26xkF7I0E14v26ryj6s0DM28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2\n\tz4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F\n\t4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq\n\t3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7\n\tIYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4U\n\tM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628vn2\n\tkIc2xKxwCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkE\n\tbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67\n\tAF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI\n\t42IY6xIIjxv20xvEc7CjxVAFwI0_Cr0_Gr1UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCw\n\tCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnI\n\tWIevJa73UjIFyTuYvjfUriihUUUUU",
        "X-CM-SenderInfo": "d1lo6xhdqjqx5xdzvxpfor3voofrz/",
        "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: Zhang Yi <yi.zhang@huawei.com>\n\nRename ext4_block_zero_page_range() to ext4_block_zero_range() since the\n\"page\" naming is no longer appropriate for current context. Also change\nits signature to take an inode pointer instead of an address_space. This\naligns with the caller ext4_block_zero_eof() and\next4_zero_partial_blocks().\n\nSigned-off-by: Zhang Yi <yi.zhang@huawei.com>\nReviewed-by: Jan Kara <jack@suse.cz>\n---\n fs/ext4/inode.c | 33 ++++++++++++++-------------------\n 1 file changed, 14 insertions(+), 19 deletions(-)",
    "diff": "diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c\nindex 1d6eb3ff437e..6e6bf693ef36 100644\n--- a/fs/ext4/inode.c\n+++ b/fs/ext4/inode.c\n@@ -4140,17 +4140,14 @@ static int ext4_block_journalled_zero_range(handle_t *handle,\n }\n \n /*\n- * ext4_block_zero_page_range() zeros out a mapping of length 'length'\n- * starting from file offset 'from'.  The range to be zero'd must\n- * be contained with in one block.  If the specified range exceeds\n- * the end of the block it will be shortened to end of the block\n- * that corresponds to 'from'\n+ * Zeros out a mapping of length 'length' starting from file offset\n+ * 'from'.  The range to be zero'd must be contained with in one block.\n+ * If the specified range exceeds the end of the block it will be\n+ * shortened to end of the block that corresponds to 'from'.\n  */\n-static int ext4_block_zero_page_range(handle_t *handle,\n-\t\tstruct address_space *mapping, loff_t from, loff_t length,\n-\t\tbool *did_zero)\n+static int ext4_block_zero_range(handle_t *handle, struct inode *inode,\n+\t\t\t\t loff_t from, loff_t length, bool *did_zero)\n {\n-\tstruct inode *inode = mapping->host;\n \tunsigned blocksize = inode->i_sb->s_blocksize;\n \tunsigned int max = blocksize - (from & (blocksize - 1));\n \n@@ -4195,15 +4192,13 @@ int ext4_block_zero_eof(handle_t *handle, struct inode *inode,\n \tif (length > blocksize - offset)\n \t\tlength = blocksize - offset;\n \n-\treturn ext4_block_zero_page_range(handle, inode->i_mapping, from,\n-\t\t\t\t\t  length, NULL);\n+\treturn ext4_block_zero_range(handle, inode, from, length, NULL);\n }\n \n int ext4_zero_partial_blocks(handle_t *handle, struct inode *inode,\n \t\t\t     loff_t lstart, loff_t length)\n {\n \tstruct super_block *sb = inode->i_sb;\n-\tstruct address_space *mapping = inode->i_mapping;\n \tunsigned partial_start, partial_end;\n \text4_fsblk_t start, end;\n \tloff_t byte_end = (lstart + length - 1);\n@@ -4218,22 +4213,22 @@ int ext4_zero_partial_blocks(handle_t *handle, struct inode *inode,\n \t/* Handle partial zero within the single block */\n \tif (start == end &&\n \t    (partial_start || (partial_end != sb->s_blocksize - 1))) {\n-\t\terr = ext4_block_zero_page_range(handle, mapping,\n-\t\t\t\t\t\t lstart, length, NULL);\n+\t\terr = ext4_block_zero_range(handle, inode, lstart,\n+\t\t\t\t\t    length, NULL);\n \t\treturn err;\n \t}\n \t/* Handle partial zero out on the start of the range */\n \tif (partial_start) {\n-\t\terr = ext4_block_zero_page_range(handle, mapping, lstart,\n-\t\t\t\t\t\t sb->s_blocksize, NULL);\n+\t\terr = ext4_block_zero_range(handle, inode, lstart,\n+\t\t\t\t\t    sb->s_blocksize, NULL);\n \t\tif (err)\n \t\t\treturn err;\n \t}\n \t/* Handle partial zero out on the end of the range */\n \tif (partial_end != sb->s_blocksize - 1)\n-\t\terr = ext4_block_zero_page_range(handle, mapping,\n-\t\t\t\t\t\t byte_end - partial_end,\n-\t\t\t\t\t\t partial_end + 1, NULL);\n+\t\terr = ext4_block_zero_range(handle, inode,\n+\t\t\t\t\t    byte_end - partial_end,\n+\t\t\t\t\t    partial_end + 1, NULL);\n \treturn err;\n }\n \n",
    "prefixes": [
        "v4",
        "04/13"
    ]
}