get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230330,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230330/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747215508.4110156.9976120423922421612.stgit@frogsfrogsfrogs/",
    "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": "<177747215508.4110156.9976120423922421612.stgit@frogsfrogsfrogs>",
    "date": "2026-04-29T15:00:26",
    "name": "[07/10] fuse2fs: add tracing for retrieving timestamps",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c847f180bb17981be5ad51fb4b46facc7ddb9c4a",
    "submitter": {
        "id": 77032,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/77032/?format=api",
        "name": "Darrick J. Wong",
        "email": "djwong@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747215508.4110156.9976120423922421612.stgit@frogsfrogsfrogs/mbox/",
    "series": [
        {
            "id": 502091,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502091/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502091",
            "date": "2026-04-29T14:59:24",
            "name": "[01/10] fuse2fs: add strictatime/lazytime mount options",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502091/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230330/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230330/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <SRS0=5AuG=C4=vger.kernel.org=linux-ext4+bounces-16219-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=Gki5SUXT;\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=5aug=c4=vger.kernel.org=linux-ext4+bounces-16219-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c04:e001:36c::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=Gki5SUXT;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16219-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=\"Gki5SUXT\"",
            "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 4g5LCz1fFjz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:03:43 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5LCz18yNz4wHs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:03:43 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g5LCz15tBz4wM1; Thu, 30 Apr 2026 01:03:43 +1000 (AEST)",
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::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 4g5LCs5nbsz4wHs\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 01:03:37 +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 D7C7930160F9\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 15:00:30 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A0BE832694F;\n\tWed, 29 Apr 2026 15:00:27 +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 63ABB308F26;\n\tWed, 29 Apr 2026 15:00:27 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 0D46AC19425;\n\tWed, 29 Apr 2026 15:00:27 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777475023; cv=pass;\n\tb=XR8b56kN0L574n+4oNaLQBQZQy/sb1+iihYfyCZY2HEwkeUiar1chflFFJ20Igj2p6ECUmJp97P5dJx5JVbdjKTjpKOhm5uI5E7+hv6DRR9o8/wC9lgo8fW1xuiNc+haaC6BzyfzW9nuOT462URQ3/QwVd68ZoqfgL0WJ+aTaW6+lAchQEYjPMJhAcj0Ht+Dtpaov+93Ps06DqIKTmf6pjwUjEu9D84Kmn3+sKqwZCfG1J2ANQpNMWu2/C1bJ32EBYLia5CvOjqyH+R2CeaMBVnbk0G1DbKatQB4F/WGt1vpQqPXJ6OyhQe+gDeJ9VfWYq15TTqPJCkhIfbYfYxY9w==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777474827; cv=none;\n b=FOA51STylM2tc7X9/ORZKET4QqZahFP8AfzL7GbGnYRytiFJ3BuayHVoNhApTEQzyLGRsrYGyXqmBgF9UGd6fNV+O+Xzkmpj/JLoa5x34QMED1Qcizi0A/MXIsgv3s05dgAktVHsemvgpT/GrNN6jrAiggCqbi1qr5pRjT/FQtE="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777475023; c=relaxed/relaxed;\n\tbh=gCXI2PvMe8B+CQfGFgSsymmMNWkV8ohZ4MopCyqhaFA=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=yqBi//BGyWuQCywpR+Z6PPogWje6mdFrdvxYNcL+tMVr9bUH3Wvxq10+t+QC59bhuw1N2INk8NM01heL1Pmb9Z39hpPMt0pTJFiYh/Vrvqwsghbh/TFPHdGaXBilnwogS9UfkM59zithaKWO90jKMTRQHS6wWWOfi5Fn7zSBdNfCGaC70kYCvy10U7BOIes8oiXzg0JyOtRI2/quWNHU7bcRkvR0R0I5PV5uo/XmRUWCbSbRC23iU2PsECcRpybolyeS+vIxKiS0EeOFQKkLH6sLAxBTlAR3GkQOo7cJPu8fPzsjhXYbeDZSDZ1l0DBTH87cGra60dws9IawMntCLw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777474827; c=relaxed/simple;\n\tbh=oyaRtscEhPkk79C+snNz3c0AVoTMc8RL8AR9HJuLN88=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=tK3Y/mi7ta4Y89COmnIRK+n3nQSCU+dxAJXFppuWZuQmqmUHSgmm5DFZQDuxw4fmwaiKn3hL8QebcfxC5p69me6rMmyPJGPty73vl7LAwiQNjZEBN8zzg5J182+cD2yPDA3FfGWNhYca3pTNezbFouVZp+34vb5T5qQXGZ3EEVo="
        ],
        "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=Gki5SUXT; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16219-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=Gki5SUXT; 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=1777474827;\n\tbh=oyaRtscEhPkk79C+snNz3c0AVoTMc8RL8AR9HJuLN88=;\n\th=Date:Subject:From:To:Cc:In-Reply-To:References:From;\n\tb=Gki5SUXTLkddio8h7ecrLCxQOpFqMJVESJBuhru9oPLYtYj+wYim7/FwIlsow3xTq\n\t WccVkew9shvsQmQb5GnVsNaNB592osJHl4hDxLAHrRYOPahj+EL9d96d1IY5CigwSD\n\t 6IlTkDm6tB/p8gZ4Hgm54g3oS/HkDLh88yZXrr4/7YS64YLdj9iKwpYYQtUz7sdovP\n\t AevgVoonNj1lJlU7Mok/5Qz4ERqzbzXNaNRGjAH1tFr6OzAnEkCnzbDZznrxAQYq5Q\n\t dDrBydjccbd9hOH7AgWSQWQHSYIdb8KuX4uRgHhDaXawhaUP9B/qAre+xeNADc7ZSh\n\t vyr4JdnWK6V7A==",
        "Date": "Wed, 29 Apr 2026 08:00:26 -0700",
        "Subject": "[PATCH 07/10] fuse2fs: add tracing for retrieving timestamps",
        "From": "\"Darrick J. Wong\" <djwong@kernel.org>",
        "To": "tytso@mit.edu",
        "Cc": "bernd@bsbernd.com, miklos@szeredi.hu, linux-ext4@vger.kernel.org,\n neal@gompa.dev, linux-fsdevel@vger.kernel.org, fuse-devel@lists.linux.dev,\n joannelkoong@gmail.com",
        "Message-ID": "<177747215508.4110156.9976120423922421612.stgit@frogsfrogsfrogs>",
        "In-Reply-To": "<177747215344.4110156.17216553139316774040.stgit@frogsfrogsfrogs>",
        "References": "<177747215344.4110156.17216553139316774040.stgit@frogsfrogsfrogs>",
        "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-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "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": "From: Darrick J. Wong <djwong@kernel.org>\n\nAdd tracing for retrieving timestamps so we can debug the weird\nbehavior.\n\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n misc/fuse2fs.c |   20 ++++++++++++++------\n 1 file changed, 14 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c\nindex 458fd6e5bf6dd8..e790f6c2b59ecd 100644\n--- a/misc/fuse2fs.c\n+++ b/misc/fuse2fs.c\n@@ -1955,9 +1955,11 @@ static void *op_init(struct fuse_conn_info *conn,\n \treturn ff;\n }\n \n-static int stat_inode(ext2_filsys fs, ext2_ino_t ino, struct stat *statbuf)\n+static int fuse2fs_stat(struct fuse2fs *ff, ext2_ino_t ino,\n+\t\t\tstruct stat *statbuf)\n {\n \tstruct ext2_inode_large inode;\n+\text2_filsys fs = ff->fs;\n \tdev_t fakedev = 0;\n \terrcode_t err;\n \tint ret = 0;\n@@ -1996,6 +1998,13 @@ static int stat_inode(ext2_filsys fs, ext2_ino_t ino, struct stat *statbuf)\n #else\n \tstatbuf->st_ctime = tv.tv_sec;\n #endif\n+\n+\tdbg_printf(ff, \"%s: ino=%d atime=%lld.%ld mtime=%lld.%ld ctime=%lld.%ld\\n\",\n+\t\t   __func__, ino,\n+\t\t   (long long int)statbuf->st_atim.tv_sec, statbuf->st_atim.tv_nsec,\n+\t\t   (long long int)statbuf->st_mtim.tv_sec, statbuf->st_mtim.tv_nsec,\n+\t\t   (long long int)statbuf->st_ctim.tv_sec, statbuf->st_ctim.tv_nsec);\n+\n \tif (LINUX_S_ISCHR(inode.i_mode) ||\n \t    LINUX_S_ISBLK(inode.i_mode)) {\n \t\tif (inode.i_block[0])\n@@ -2042,16 +2051,15 @@ static int op_getattr(const char *path, struct stat *statbuf,\n \t\t      struct fuse_file_info *fi)\n {\n \tstruct fuse2fs *ff = fuse2fs_get();\n-\text2_filsys fs;\n \text2_ino_t ino;\n \tint ret = 0;\n \n \tFUSE2FS_CHECK_CONTEXT(ff);\n-\tfs = fuse2fs_start(ff);\n+\tfuse2fs_start(ff);\n \tret = fuse2fs_file_ino(ff, path, fi, &ino);\n \tif (ret)\n \t\tgoto out;\n-\tret = stat_inode(fs, ino, statbuf);\n+\tret = fuse2fs_stat(ff, ino, statbuf);\n out:\n \tfuse2fs_finish(ff, ret);\n \treturn ret;\n@@ -3841,7 +3849,7 @@ static int fuse2fs_file_uses_iomap(struct fuse2fs *ff, ext2_ino_t ino)\n \tif (!fuse2fs_iomap_enabled(ff))\n \t\treturn 0;\n \n-\tret = stat_inode(ff->fs, ino, &statbuf);\n+\tret = fuse2fs_stat(ff, ino, &statbuf);\n \tif (ret)\n \t\treturn ret;\n \n@@ -4750,7 +4758,7 @@ static int op_readdir_iter(ext2_ino_t dir EXT2FS_ATTR((unused)),\n \t\t\t(unsigned long long)i->dirpos);\n \n \tif (i->flags == FUSE_READDIR_PLUS) {\n-\t\tret = stat_inode(i->fs, dirent->inode, &stat);\n+\t\tret = fuse2fs_stat(i->ff, dirent->inode, &stat);\n \t\tif (ret)\n \t\t\treturn DIRENT_ABORT;\n \t}\n",
    "prefixes": [
        "07/10"
    ]
}