get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218282,
    "url": "http://patchwork.ozlabs.org/api/patches/2218282/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260331212827.2631020-3-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-3-aalbersh@kernel.org>",
    "list_archive_url": null,
    "date": "2026-03-31T21:28:03",
    "name": "[v6,02/22] fsverity: expose ensure_fsverity_info()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d4a443fde9434c1adeacdf4a04edc1cc2db7f0c7",
    "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-3-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/2218282/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218282/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=udvk=B7=vger.kernel.org=linux-ext4+bounces-15549-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=YCaKVOP6;\n\tdkim-atps=neutral",
            "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=udvk=b7=vger.kernel.org=linux-ext4+bounces-15549-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=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=YCaKVOP6;\n\tdkim-atps=neutral",
            "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-15549-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=\"YCaKVOP6\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4flh8G4Bnhz1yGw\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 08:29: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 4flh8G3KCbz4wGx\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 08:29:18 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4flh8G3DXwz4wTd; Wed, 01 Apr 2026 08:29:18 +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 4flh8B5kChz4wGx\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 01 Apr 2026 08:29:14 +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 8C21E302966B\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 31 Mar 2026 21:28:57 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id CA5BE4611CA;\n\tTue, 31 Mar 2026 21:28:41 +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 802BE453486;\n\tTue, 31 Mar 2026 21:28:41 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id A93F9C2BC9E;\n\tTue, 31 Mar 2026 21:28:38 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774992558; cv=pass;\n\tb=T+qqLe8i1kT0lvzT6j2qiMRcv6hzaprrhjQYG8cw0037co31dTzOQG3uP5m9cqRnrSaBCwLsHLd0Tv50kH3RxZD9gOgkSdgyaz4pLurkdgNeUdkiMq0MJvqBEyKHLNPSMHmXuGElzWTvJf475sAAaecfhwzD92G+XDkzhedcNSB6cn/vTwp4k47a4noYZQ6/Xp8n3iil624J/i2tUwOLBSYQcSNbrf4WJjlyXDbudpMUvbi00QxmmpSBDAFryqaCBL73yKT8tFm9wuxuif6PRdGtO1T655sgyO+omq1nSthUZ16/56qAxeD0g7E+nPwpCZISNKpHrWNpYyAnBmtN7A==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774992521; cv=none;\n b=tqbJrtUXbOO/GsnjtrrIwBwlnDA6BfYkMeuGhQhvK2s7h6mjavt06vcZY5vnG2wewQ7rzfysYE4s2+qUweVHyadNpDurDB4kNh9z0wnjXQ0hqYd+uOcqgcvdla+4hPNfwkLKJXrxhL5w33Yjh5cFeFYKlyNmwwIJ2wQIOPvuqq8="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774992558; c=relaxed/relaxed;\n\tbh=BDkFYOUCngCzVoiGAXmkC/j+i0u2E/yAvIFPEkaiGo4=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=LBbdTNwJNGEUUaHdWEEVMsfpzF67Wq2SJfJW3bNmNc2EIJPPpIDXaA7kSE2r+tL2mqsAsFiD5fpSUCXME0jJiF/zKb1vji99TLVm0b3VGURvs2UcCTRTlee/so/gMTDTXu0E2kgxlB0Icaw93ZeJWF3Evry6615KUqJ16hCipVvbgTJ0eU3KjMiLvJZktE6kD+wtjnoKXiI6DnX2xuloGxCtpq38rInW5HN+30hzF788nptBzgg1FLuBN1jxdbe9SBkgds9Zu19ADqOQ+doeXwQZkly4wxzDhYxa6yorNATTgdXNPBt3c7F5KsL60iSB2COVxSUPcN+Jbz+sj7ZwfA==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774992521; c=relaxed/simple;\n\tbh=DWFGNbys8DFPXMuK9ukIc5QmySSoURrtpsw9XO+xryg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=PTiYiTqWnMNoGRARqnzBqahEFIOb0RVZGHtiPSaaHSwvfk2VoOcPtT7WS5a2/v8QTAp2mnsHGF3FEvzpS41IkxhlKXGFBTPlXoAeJPN93XLOyhLHbffH8lYz/R4SG+phhoZr4klKTDmizSbyOEZJLCXJGVxKvae/b1B+wXkQI1A="
        ],
        "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=YCaKVOP6; dkim-atps=neutral;\n spf=pass (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15549-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=YCaKVOP6; 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=1774992521;\n\tbh=DWFGNbys8DFPXMuK9ukIc5QmySSoURrtpsw9XO+xryg=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=YCaKVOP6Ndjpfrf7u13jiPs8DEpIER63CwhOxd7N+Q0VipDtqk+iXQXxyxaVZdBOZ\n\t SXbyjC3XXIoLyhm1wz3paM4sHPx36ryRDMiUktQ1eyntHCsikVOX5gFzYOg6DSM1P4\n\t 0yQzO6K4OM8CPCDt6jP/OQsdllaEgOHeGy1yhHTSxoHZJK0Y7qxpN+lY+5WN9HRSho\n\t GUcJPKU/5tzjHLbpE5s0ezLGEpTzJfh3dbgpnhmYkGDDLEvZ4RIHG0JyNP7WMS1K+o\n\t n5Cw6WO6xoVk01+FhGifUOyafexIoh6lLzH8+PLyfz5M3pyUzJVUo/GmQIwF5MTdpI\n\t 2dVira0fksuxA==",
        "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 02/22] fsverity: expose ensure_fsverity_info()",
        "Date": "Tue, 31 Mar 2026 23:28:03 +0200",
        "Message-ID": "<20260331212827.2631020-3-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": "This function will be used by XFS's scrub to force fsverity activation,\ntherefore, to read fsverity context.\n\nSigned-off-by: Andrey Albershteyn <aalbersh@kernel.org>\nReviewed-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n fs/verity/open.c         |  5 +++--\n include/linux/fsverity.h | 13 +++++++++++++\n 2 files changed, 16 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/fs/verity/open.c b/fs/verity/open.c\nindex dfa0d1afe0fe..0483db672526 100644\n--- a/fs/verity/open.c\n+++ b/fs/verity/open.c\n@@ -344,7 +344,7 @@ int fsverity_get_descriptor(struct inode *inode,\n \treturn 0;\n }\n \n-static int ensure_verity_info(struct inode *inode)\n+int fsverity_ensure_verity_info(struct inode *inode)\n {\n \tstruct fsverity_info *vi = fsverity_get_info(inode), *found;\n \tstruct fsverity_descriptor *desc;\n@@ -380,12 +380,13 @@ static int ensure_verity_info(struct inode *inode)\n \tkfree(desc);\n \treturn err;\n }\n+EXPORT_SYMBOL_GPL(fsverity_ensure_verity_info);\n \n int __fsverity_file_open(struct inode *inode, struct file *filp)\n {\n \tif (filp->f_mode & FMODE_WRITE)\n \t\treturn -EPERM;\n-\treturn ensure_verity_info(inode);\n+\treturn fsverity_ensure_verity_info(inode);\n }\n EXPORT_SYMBOL_GPL(__fsverity_file_open);\n \ndiff --git a/include/linux/fsverity.h b/include/linux/fsverity.h\nindex a8f9aa75b792..2e3a90aff11e 100644\n--- a/include/linux/fsverity.h\n+++ b/include/linux/fsverity.h\n@@ -309,6 +309,19 @@ static inline int fsverity_file_open(struct inode *inode, struct file *filp)\n \treturn 0;\n }\n \n+/**\n+ * fsverity_ensure_verity_info() - create verity info if it's not in memory yet\n+ * @inode: the inode for which verity info should be created\n+ *\n+ * Ensure this inode has verity info attached to it. Read fsverity descriptor\n+ * and creates verity based on that. Inodes opened outside of\n+ * file_operations->open will not have any verity info attached. This\n+ * info is required for any fsverity related operations.\n+ *\n+ * Return: 0 on success, -errno on failure\n+ */\n+int fsverity_ensure_verity_info(struct inode *inode);\n+\n void fsverity_cleanup_inode(struct inode *inode);\n \n struct page *generic_read_merkle_tree_page(struct inode *inode, pgoff_t index);\n",
    "prefixes": [
        "v6",
        "02/22"
    ]
}