get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218301,
    "url": "http://patchwork.ozlabs.org/api/patches/2218301/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260331212827.2631020-11-aalbersh@kernel.org/",
    "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": "<20260331212827.2631020-11-aalbersh@kernel.org>",
    "list_archive_url": null,
    "date": "2026-03-31T21:28:11",
    "name": "[v6,10/22] xfs: initialize fs-verity on file open",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f6cd87afe6eedd29c4db19db92cb79bc357f451d",
    "submitter": {
        "id": 92821,
        "url": "http://patchwork.ozlabs.org/api/people/92821/?format=api",
        "name": "Andrey Albershteyn",
        "email": "aalbersh@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260331212827.2631020-11-aalbersh@kernel.org/mbox/",
    "series": [
        {
            "id": 498255,
            "url": "http://patchwork.ozlabs.org/api/series/498255/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=498255",
            "date": "2026-03-31T21:28:01",
            "name": "fs-verity support for XFS with post EOF merkle tree",
            "version": 6,
            "mbox": "http://patchwork.ozlabs.org/series/498255/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218301/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218301/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=C2cI=B7=vger.kernel.org=linux-ext4+bounces-15557-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\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=QTw+M6nh;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=c2ci=b7=vger.kernel.org=linux-ext4+bounces-15557-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c15:e001:75::12fc:5321\"\n arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org",
            "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=QTw+M6nh;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15557-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"QTw+M6nh\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\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 4flhRG0vc5z1yCp\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 08:42:18 +1100 (AEDT)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4flhRG0Qttz58df\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 08:42:18 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4flhRG0Mktz4wGT; Wed, 01 Apr 2026 08:42:18 +1100 (AEDT)",
            "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\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 4flhRB3knCz58df\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 01 Apr 2026 08:42:14 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 70714307983A\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 31 Mar 2026 21:30:08 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 0E0D046AF08;\n\tTue, 31 Mar 2026 21:29:06 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\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 C2D7745106D;\n\tTue, 31 Mar 2026 21:29:05 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id EAE5DC19423;\n\tTue, 31 Mar 2026 21:29:02 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774993338; cv=pass;\n\tb=m/NfD6AtbXiUYzg4e6hk5wR+uKW8DZ2eTNsYLvMjZ6UEdSYYDhhy/AdoMCwwe1xaBvKSpiD/UNK6qRGfn1GxR9Ihnjv+NoUjmvbJBqJ2mTvquwmN8RKFlo2L9GOwIQzGgU/lq6UOIZbn+pGaUc+HwHDJDzIGZXx6MKE6m6+fj07qmffGWFL39ISISt+iZ6ZQChpCIQ3kqbZZcXZmSFuZO/n+mXAuFgSY5hcsd9ja8fzhkJpvBVnjKqnD6u46MZ6UGyTFB1EkP+GlCc9RgMZ2qxuSU3BC9O6CNlavmU7AxU1EeVanEaQjCEyYpv0LR7sr8YN6as/Vm/fX3ZO4sqRftw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774992545; cv=none;\n b=I4r4zHaofEDU1BQ1/vW/9yLPKYnMz1WTgFLwwGozM/20t2sxSb9xiElVFUFJyZnL28cU79Q1btfyRFyAep8GGZqZ4ON5EysohCmRIhOv6BvwRvOiShW3iKflT94BSfH/WEKKnB+ocOlbTbJX+3Vmy4V/Fd0CNIWmNb1XA67+XNg="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774993338; c=relaxed/relaxed;\n\tbh=w2uKcgganAhQg74Fuf+AS49Uko5xJTS2Pjh70DGjE0w=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=urMuof6kmaMJaQGSqcS4WXEevv2JvURdMyW/vDNrW+BQiW/JZU4W8n8m6iiOTg+Ev8g4HEZxWyLY7Hupb/2btGyMzG+qzfjKAp8CICWjaVEqz047Rftcr9frBC5O+E7xdwn7fvzlY/ZIY/VYWFBlgT+EqRKfyHTEc9g3jtIw0voaAH1//vkqQB7t+50p3DqYxNaHLnK0y7h7a/AQ07fvQALhzV3oVjnrh0WT5XUdxDuGYfaNCWvMiw6qD5OyuvrC2u+Rh3010Qfs8inpoGHRNFQxkWkP9n/7esTv9SI2D7R2mKrRqdKEok3t8upwHOnN4vTQ1m9mOtHBcoJysz3DJg==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774992545; c=relaxed/simple;\n\tbh=gjzi4j4Cju/ktgfw/m2kII6LXPtWjZKRFOLxEgok6kg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=vEK7wOr9x2kmjfyh6xu/JPK5ifjfgfxZZ84jqXsuDNWHXB5/E3oqoHTN8scVPR3hHm6W7fFCNi/bJbGm+VSwGmX3IHXuV30gH2kwlj4OVx9uhKgwNGlRZpP7Y0/YIrnxN4WyYYiHRtDVbD4e3enw3WIae1kq8zzUe30FSf6c+rg="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=QTw+M6nh; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15557-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=QTw+M6nh; arc=none smtp.client-ip=10.30.226.201"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1774992545;\n\tbh=gjzi4j4Cju/ktgfw/m2kII6LXPtWjZKRFOLxEgok6kg=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=QTw+M6nhWB3vooD1fcAu4VAynFJKvX/lcxMtlPgAYuA1ubd7rp2fErvuNVkpkoGBZ\n\t rN9Vgk7D01EITyvtAGWBSoavsR5jS/klg6FTpXuuWAwKWFxaK5RoayrjBeu7NeMLNE\n\t 62A81u4f+vN3xi0ZgQhJPzctyuK8sqp5gAvqsFWYTa1i2YVZ2na/K0kTp0rV4PR4JO\n\t rGWbX9MMxVEuwulsF8nL6WQRQfq2//xU1y7HLpXoQEYddWdGDZvkIrsiKFVF5DKcSL\n\t lKlE+oRLSj329Nzit5pPfTrTwVXC9OQN7S3aJy4Or3LHGF4PsptB2pnA4CKiR4c0XG\n\t /86rt0FwuCcDg==",
        "From": "Andrey Albershteyn <aalbersh@kernel.org>",
        "To": "linux-xfs@vger.kernel.org,\n\tfsverity@lists.linux.dev,\n\tlinux-fsdevel@vger.kernel.org,\n\tebiggers@kernel.org",
        "Cc": "Andrey Albershteyn <aalbersh@kernel.org>,\n\thch@lst.de,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\tlinux-btrfs@vger.kernel.org,\n\tdjwong@kernel.org",
        "Subject": "[PATCH v6 10/22] xfs: initialize fs-verity on file open",
        "Date": "Tue, 31 Mar 2026 23:28:11 +0200",
        "Message-ID": "<20260331212827.2631020-11-aalbersh@kernel.org>",
        "X-Mailer": "git-send-email 2.51.2",
        "In-Reply-To": "<20260331212827.2631020-1-aalbersh@kernel.org>",
        "References": "<20260331212827.2631020-1-aalbersh@kernel.org>",
        "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-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "content": "fs-verity will read and attach metadata (not the tree itself) from\na disk for those inodes which already have fs-verity enabled.\n\nSigned-off-by: Darrick J. Wong <djwong@kernel.org>\nReviewed-by: Christoph Hellwig <hch@lst.de>\nSigned-off-by: Andrey Albershteyn <aalbersh@kernel.org>\n---\n fs/xfs/xfs_file.c | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c\nindex 6246f34df9fd..a980ac5196a8 100644\n--- a/fs/xfs/xfs_file.c\n+++ b/fs/xfs/xfs_file.c\n@@ -37,6 +37,7 @@\n #include <linux/fadvise.h>\n #include <linux/mount.h>\n #include <linux/filelock.h>\n+#include <linux/fsverity.h>\n \n static const struct vm_operations_struct xfs_file_vm_ops;\n \n@@ -1640,11 +1641,18 @@ xfs_file_open(\n \tstruct inode\t*inode,\n \tstruct file\t*file)\n {\n+\tint\t\terror;\n+\n \tif (xfs_is_shutdown(XFS_M(inode->i_sb)))\n \t\treturn -EIO;\n \tfile->f_mode |= FMODE_NOWAIT | FMODE_CAN_ODIRECT;\n \tif (xfs_get_atomic_write_min(XFS_I(inode)) > 0)\n \t\tfile->f_mode |= FMODE_CAN_ATOMIC_WRITE;\n+\n+\terror = fsverity_file_open(inode, file);\n+\tif (error)\n+\t\treturn error;\n+\n \treturn generic_file_open(inode, file);\n }\n \n",
    "prefixes": [
        "v6",
        "10/22"
    ]
}