get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2225120,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2225120/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260420114714.1621982-3-aalbersh@kernel.org/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": "<20260420114714.1621982-3-aalbersh@kernel.org>",
    "date": "2026-04-20T11:46:49",
    "name": "[v8,02/22] fsverity: expose ensure_fsverity_info()",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "e0b2295fc6309aa72f431d4008ecf577e6cf3994",
    "submitter": {
        "id": 92821,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/92821/?format=api",
        "name": "Andrey Albershteyn",
        "email": "aalbersh@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260420114714.1621982-3-aalbersh@kernel.org/mbox/",
    "series": [
        {
            "id": 500600,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/500600/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=500600",
            "date": "2026-04-20T11:46:51",
            "name": "fs-verity support for XFS with post EOF merkle tree",
            "version": 8,
            "mbox": "http://patchwork.ozlabs.org/series/500600/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2225120/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2225120/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <SRS0=WAAh=CT=vger.kernel.org=linux-ext4+bounces-15915-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=ZQtu/+/A;\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=waah=ct=vger.kernel.org=linux-ext4+bounces-15915-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.105.105.114 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=ZQtu/+/A;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15915-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=\"ZQtu/+/A\"",
            "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 4fzkJy6PGwz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 21:48:34 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fzkJy5zlpz4wCx\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 21:48:34 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fzkJy5w2vz4wDm; Mon, 20 Apr 2026 21:48:34 +1000 (AEST)",
            "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\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 4fzkJs6NfNz4wCx\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 20 Apr 2026 21:48:29 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id B952F3042D2A\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 20 Apr 2026 11:47:42 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id B467E39E190;\n\tMon, 20 Apr 2026 11:47: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 737E638423A;\n\tMon, 20 Apr 2026 11:47:41 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 9C19AC19425;\n\tMon, 20 Apr 2026 11:47:38 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1776685714; cv=pass;\n\tb=oRJ4ii+/41U8RwdDczDiFtBnW2htSs+5++NJkP5OxBQXDxqVOnMWmj1qQXQWI8hrxfnZOh0eN/0ubeMAnf9M8chWnNvop3+FAj9Xv0admWPOBl2iJM4M4tt3/zJb67lrxbNFyz/JBZF47ZKl8f78NnBev9dEMyktOBSE7RmRkKXDuXr+I/KiayoUYJdT7WO6sAqKK8RCAKZDWNf2CNqj1GgbYE6zyfS+vp+xqbjizFjhZOPIhTuzWJoJU43ds+lc+KZWblJd30g4OsMPaAZZUf4Fe5wDO0EQWa2gdyEUDY2Qndga3UOUCFBunB9s/k/hYvPEXus5JChETvd9cf1nxg==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776685661; cv=none;\n b=f08v5RCs3X3IenfNI3VyvXEh7q6rSrNZXWR+acChEkZeyrH4E72Wj80RQ6bM/yu5yCVtCM4q9OMCV2K7IeSyUxbT6hSva5ECF2015Ig/KYA/oLtB0BdSuWjo0d8wRTYXwgCq6GHqi8ApCIRVuHcsXd4Pk9/METSeAO73eN+B0Ek="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1776685714; c=relaxed/relaxed;\n\tbh=kGSHNzvV/o/P72ND2o5H/dakJtS7WFmsSHhfgDBvWsI=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=tJvKltWzdiJ3FX4+Pa4Y1Ynh6042d3O+rwR1qx3l5zy6TyeAQUG7b3oGRpRfz8ibGjk7DTvI/6td3FUanctzPBAerw3Kssh4DeWA048pnDhlSTTE6Q4yJRyW0Sz7XEkvUfUL8U/HZRN66o5cqRRZwqzONotqpiEXCFuGzfBf9byNptvLX9PtD+wKWRUhhapUcZlNy4+l/qLTKTRZIwEQSGvLGtFQ9TG4glvBzKPZZdqs6234Hq2TL6KiP9BTJy6q9asEOy+2xanz/B7HtjiYR1mEeuecg99GteSlLf4w9uXyj0+DhCoJJZxVD+TINLrdxA6BzEg9E4dUk4J3jbRBNw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776685661; c=relaxed/simple;\n\tbh=5N+dWqoeOYxeisPRy5znoys7rfHJB7cC5xNXENMMBQQ=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=e/t2HoYmA7OInjy61omXSBd59iPtJzXq+yicrvbJ/natjRGIMirXa3/LZKr+6gby/PTBxiBRgwKaDXBTEsofMOT6AEMDaOwrgqkSyhQqoIKmQ8KbH1hz5SBTBVhKZrEbBErnTUgXqSTFoyAGplDmAQ1jX6h3aL+DmmBZixZEP88="
        ],
        "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=ZQtu/+/A; dkim-atps=neutral;\n spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15915-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=ZQtu/+/A; 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=1776685661;\n\tbh=5N+dWqoeOYxeisPRy5znoys7rfHJB7cC5xNXENMMBQQ=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=ZQtu/+/AejGtcgdvO/yXm4thjRzxIAMK5jj4bgfLpzaKWlIpornw7FVenkndYmW1Y\n\t 97VxGxP7iGb5rEgZ3BbTjwYt5hYGD+j/N7QDI761pQ6M+imDwg1zlePqskEwIVS39c\n\t fp4xiuazyfyffCQvzswV0yq7KRg9BDWOvwBemqcCOr5WmHDDwQQqaqvC41qdH3/nuo\n\t pWs3ciDwyNuxLuY5S7kuy6fTlD3EQ+ezUYNYSmPIhNHIl3cZxxVf98GOgiQcVJIi13\n\t EojNzPxew0uE6WZSdX6b5/n6/ge/3+GVerH6gPDN+MG0xLQkssFG+ijzjxOjyXQA/U\n\t 4T4eFYQfvNvtQ==",
        "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\tlinux-unionfs@vger.kernel.org,\n\tdjwong@kernel.org",
        "Subject": "[PATCH v8 02/22] fsverity: expose ensure_fsverity_info()",
        "Date": "Mon, 20 Apr 2026 13:46:49 +0200",
        "Message-ID": "<20260420114714.1621982-3-aalbersh@kernel.org>",
        "X-Mailer": "git-send-email 2.51.2",
        "In-Reply-To": "<20260420114714.1621982-1-aalbersh@kernel.org>",
        "References": "<20260420114714.1621982-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\nReviewed-by: Darrick J. Wong <djwong@kernel.org>\nAcked-by: Eric Biggers <ebiggers@kernel.org>\nSigned-off-by: Andrey Albershteyn <aalbersh@kernel.org>\n---\n fs/verity/open.c         | 22 ++++++++++++++++++++--\n include/linux/fsverity.h |  2 ++\n 2 files changed, 22 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/fs/verity/open.c b/fs/verity/open.c\nindex dfa0d1afe0fe..d32d0899df25 100644\n--- a/fs/verity/open.c\n+++ b/fs/verity/open.c\n@@ -344,7 +344,24 @@ int fsverity_get_descriptor(struct inode *inode,\n \treturn 0;\n }\n \n-static int ensure_verity_info(struct inode *inode)\n+/**\n+ * fsverity_ensure_verity_info() - cache verity info if it's not already cached\n+ * @inode: the inode for which verity info should be cached\n+ *\n+ * Ensure this inode has verity info attached to it, it's assumed the inode\n+ * already has fsverity enabled. Read fsverity descriptor and creates verity\n+ * based on that.\n+ *\n+ * This needs to be called at least once before any of the inode's data\n+ * can be verified (and thus read at all) or the inode's fsverity digest\n+ * retrieved.  fsverity_file_open() calls this already, which handles\n+ * normal file accesses.  If a filesystem does any internal (i.e. not\n+ * associated with a file descriptor) reads of the file's data or\n+ * fsverity digest, it must call this explicitly before doing so.\n+ *\n+ * Return: 0 on success, -errno on failure\n+ */\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 +397,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..5562271bd628 100644\n--- a/include/linux/fsverity.h\n+++ b/include/linux/fsverity.h\n@@ -309,6 +309,8 @@ static inline int fsverity_file_open(struct inode *inode, struct file *filp)\n \treturn 0;\n }\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": [
        "v8",
        "02/22"
    ]
}