get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230326,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230326/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747215717.4110581.2902242851952264152.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": "<177747215717.4110581.2902242851952264152.stgit@frogsfrogsfrogs>",
    "date": "2026-04-29T15:01:29",
    "name": "[1/4] fuse2fs: enable caching of iomaps",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "1252f094e35eefa88ac6ec2e000ae10058241efc",
    "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/177747215717.4110581.2902242851952264152.stgit@frogsfrogsfrogs/mbox/",
    "series": [
        {
            "id": 502093,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502093/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502093",
            "date": "2026-04-29T15:01:29",
            "name": "[1/4] fuse2fs: enable caching of iomaps",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502093/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230326/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230326/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <SRS0=it20=C4=vger.kernel.org=linux-ext4+bounces-16223-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=Fk88YCE8;\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=it20=c4=vger.kernel.org=linux-ext4+bounces-16223-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c09:e001:a7::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=Fk88YCE8;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16223-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=\"Fk88YCE8\"",
            "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 4g5LBr4yt3z1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:02:44 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5LBr4VDMz4wM1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:02:44 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g5LBr4QJYz4wHs; Thu, 30 Apr 2026 01:02:44 +1000 (AEST)",
            "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4g5LBl17rHz4wSX\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 01:02:39 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id A9E91301938F\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 15:01:30 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C4A7A33E34B;\n\tWed, 29 Apr 2026 15:01:29 +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 8737A1E98E3;\n\tWed, 29 Apr 2026 15:01:29 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 61968C19425;\n\tWed, 29 Apr 2026 15:01:29 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777474964; cv=pass;\n\tb=BxNbY0vwCGEJ7Gm3o1XQv5Mm4LbV1MY89je/PnnldAZvXm9+iK3ykE0mjpLqTwQnJo619f5UGMn2yg2JMKI8KIrJEdJ/+J63iFV+4xn5doFEpfJ8TqKPAsLtG91a4oXouDs57r6eEMpBmKSnlXfdM4Ilc0NO0ubtOKXb4zlTwekh87/yP95fQKN73E0bBnWbk7X4H8CQuuSu+uBPAgWwjD/B8yC4W74rJo1bGiva5I/KeRr6FCx2oaILne1E1TFr+b15DDgsLyvDwdc09ZxAh8klw+ExnixWHHh3GucKPequF+Gi0xZ/tBX1vJVxiKeJV8Sdn8GK5RVNMofFfx7/cg==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777474889; cv=none;\n b=XAchhGVb6OVje0u9JMf31ZHTA3tub79Rfwr3BTjP+0atoctsfaA5A3W44XIUbIAmdGWiG61VDbVqmTxyjZgJeez3Wy4m5j+u+fYnf7nqbrke1emNjZjjnFl3kxiJxx3xWjaDT0eBlsEG5nreLkXpIQQiSY7t7LZpW/6veJIUSbA="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777474964; c=relaxed/relaxed;\n\tbh=lJpNvPqevbyin7piPypXIFdQdQkTE+O5IDclBDOOBdI=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=uCYZY5OEgo+g3f8icImL3geI/8XZaX6kb2xNh+GEYhJxUBL4Zz2m34qDAAZgBaigv+/+LDkiVuhJvfgt0PClCV/U9QTo/GPJ5zZriq55rTvtgGdYALI9YhpEYAbyjA42TwI7tIyA3H+wzzUTTlzC7sUXcfkV2to7Il/1bQxPEFPm/k8dcuuoN0KVNBijoT0vi6a6T3eRRgPkUxGXIvCy6cQsK6pW+/BdvuQFxRnitcRDXouWcyD7r2VwvAUCU62c5onpayoY95Q4qCudlyOT1tLOXyb4DzfZIsnL7aBrhz3cuVK3ygisewdpv2zNFHpRNulOxig94VBFl18Jib2/1A==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777474889; c=relaxed/simple;\n\tbh=UchNZ+sOI1GCFZfSgmmjrxLhVsiKxaRAhoi0+Mwhm5A=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=VazZWAy8DVKijxTTCZ+L+m57C8VS34QRZf1T9g35Nr/+mTrqKmaCkqmirEtDSer70YTdqFu8Ag/dDnovpp3MB4HjkXytjn6AI0vQEWHkgK9xUdydvM1gmqx/pkIFL2jwz6palcgy1bOHB794gtONKmuLISXNY00bjcS2Ay2TclQ="
        ],
        "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=Fk88YCE8; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16223-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=Fk88YCE8; 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=1777474889;\n\tbh=UchNZ+sOI1GCFZfSgmmjrxLhVsiKxaRAhoi0+Mwhm5A=;\n\th=Date:Subject:From:To:Cc:In-Reply-To:References:From;\n\tb=Fk88YCE8cWacVfhXT5p4Da1NqZ5MvmNosqeOZUklrG30XbA4Mupzm00bC+JLnRG7I\n\t Ao9rfCyBv8k7u+3wnJATfnRLxpK8zIbmyt7R9srmoE+Z5NdggoG537AR4yJysHK1EQ\n\t 9UdxskYZ5A9K4MLf/8N/j8WgIeNAH7rF5eHdCEsJ4HA2p6tEA+81FHpn7WvfaDaOGx\n\t sIv1HMiKYTYpIc6Niv3zsBhJnw/leudscWId9VOpvwFNQiF9L/P2h4zXIJ86JOpOw+\n\t 12mfw8BpI+5u77M+K5+8ssla4IrQHTc5G4GSsa9HZgFu6aaIDG88pvqb2xvIe72Fx+\n\t yE2rbzoAAmqNg==",
        "Date": "Wed, 29 Apr 2026 08:01:29 -0700",
        "Subject": "[PATCH 1/4] fuse2fs: enable caching of iomaps",
        "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": "<177747215717.4110581.2902242851952264152.stgit@frogsfrogsfrogs>",
        "In-Reply-To": "<177747215686.4110581.16852917113451473539.stgit@frogsfrogsfrogs>",
        "References": "<177747215686.4110581.16852917113451473539.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\nCache the iomaps we generate in the kernel for better performance.\n\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n fuse4fs/fuse4fs.c |   30 ++++++++++++++++++++++++++++++\n misc/fuse2fs.c    |   29 +++++++++++++++++++++++++++++\n 2 files changed, 59 insertions(+)",
    "diff": "diff --git a/fuse4fs/fuse4fs.c b/fuse4fs/fuse4fs.c\nindex 9f7fe365ccdf87..56a79dd48c9f43 100644\n--- a/fuse4fs/fuse4fs.c\n+++ b/fuse4fs/fuse4fs.c\n@@ -304,6 +304,8 @@ struct fuse4fs {\n #ifdef STATX_WRITE_ATOMIC\n \tunsigned int awu_min, awu_max;\n #endif\n+\t/* options set by fuse_opt_parse must be of type int */\n+\tint iomap_cache;\n #endif\n \tunsigned int blockmask;\n \tunsigned long offset;\n@@ -2314,6 +2316,7 @@ static void fuse4fs_iomap_enable(struct fuse_conn_info *conn,\n \t\t\terr_printf(ff, \"%s\\n\", _(\"Could not enable iomap.\"));\n \t\tif (ff->iomap_passthrough_options)\n \t\t\terr_printf(ff, \"%s\\n\", _(\"Some mount options require iomap.\"));\n+\t\tff->iomap_cache = 0;\n \t\treturn;\n \t}\n }\n@@ -7169,6 +7172,28 @@ static void op_iomap_begin(fuse_req_t req, fuse_ino_t fino, uint64_t dontcare,\n \tif (opflags & FUSE_IOMAP_OP_ATOMIC)\n \t\tread.flags |= FUSE_IOMAP_F_ATOMIC_BIO;\n \n+\t/*\n+\t * For real IO operations, cache the mapping in the kernel so that we\n+\t * can reuse them for subsequent IO to the same regions.  Don't let\n+\t * FIEMAP thrash the cache.\n+\t */\n+\tif (!(opflags & FUSE_IOMAP_OP_REPORT) && ff->iomap_cache) {\n+\t\tret = fuse_lowlevel_iomap_upsert_mappings(ff->fuse, fino, ino,\n+\t\t\t\t\t\t\t  &read, NULL);\n+\t\tif (ret) {\n+\t\t\t/*\n+\t\t\t * Log the cache upsert error, but we can still return\n+\t\t\t * the mapping via the reply.  EINVAL is the magic code\n+\t\t\t * for the kernel declining to cache the mapping.\n+\t\t\t */\n+\t\t\tif (ret != -ENOMEM && ret != -EINVAL)\n+\t\t\t\ttranslate_error(fs, ino, -ret);\n+\t\t\tgoto out_unlock;\n+\t\t}\n+\n+\t\tfuse_file_iomap_retry_cache(&read);\n+\t}\n+\n out_unlock:\n \tfuse4fs_finish(ff, ret);\n \tif (ret)\n@@ -7993,6 +8018,10 @@ static struct fuse_opt fuse4fs_opts[] = {\n #ifdef HAVE_CLOCK_MONOTONIC\n \tFUSE4FS_OPT(\"timing\",\t\ttiming,\t\t\t1),\n #endif\n+#ifdef HAVE_FUSE_IOMAP\n+\tFUSE4FS_OPT(\"iomap_cache\",\tiomap_cache,\t\t1),\n+\tFUSE4FS_OPT(\"noiomap_cache\",\tiomap_cache,\t\t0),\n+#endif\n \n #ifdef HAVE_FUSE_IOMAP\n #ifdef MS_LAZYTIME\n@@ -8487,6 +8516,7 @@ int main(int argc, char *argv[])\n \t\t.iomap_want = FT_DEFAULT,\n \t\t.iomap_state = IOMAP_UNKNOWN,\n \t\t.iomap_dev = FUSE_IOMAP_DEV_NULL,\n+\t\t.iomap_cache = 1,\n #endif\n #ifdef HAVE_FUSE_LOOPDEV\n \t\t.loop_fd = -1,\ndiff --git a/misc/fuse2fs.c b/misc/fuse2fs.c\nindex 6e4780121d5c83..e485c38bda41e8 100644\n--- a/misc/fuse2fs.c\n+++ b/misc/fuse2fs.c\n@@ -285,6 +285,8 @@ struct fuse2fs {\n #ifdef STATX_WRITE_ATOMIC\n \tunsigned int awu_min, awu_max;\n #endif\n+\t/* options set by fuse_opt_parse must be of type int */\n+\tint iomap_cache;\n #endif\n \tunsigned int blockmask;\n \tunsigned long offset;\n@@ -1870,6 +1872,7 @@ static void fuse2fs_iomap_enable(struct fuse_conn_info *conn,\n \t\t\terr_printf(ff, \"%s\\n\", _(\"Could not enable iomap.\"));\n \t\tif (ff->iomap_passthrough_options)\n \t\t\terr_printf(ff, \"%s\\n\", _(\"Some mount options require iomap.\"));\n+\t\tff->iomap_cache = 0;\n \t\treturn;\n \t}\n }\n@@ -6453,6 +6456,27 @@ static int op_iomap_begin(const char *path, uint64_t nodeid, uint64_t attr_ino,\n \tif (opflags & FUSE_IOMAP_OP_ATOMIC)\n \t\tread->flags |= FUSE_IOMAP_F_ATOMIC_BIO;\n \n+\t/*\n+\t * For real IO operations, cache the mapping in the kernel so that we\n+\t * can reuse them for subsequent IO to the same regions.  Don't let\n+\t * FIEMAP thrash the cache.\n+\t */\n+\tif (!(opflags & FUSE_IOMAP_OP_REPORT) && ff->iomap_cache) {\n+\t\tret = fuse_fs_iomap_upsert(nodeid, attr_ino, read, NULL);\n+\t\tif (ret) {\n+\t\t\t/*\n+\t\t\t * Log the cache upsert error, but we can still return\n+\t\t\t * the mapping via the reply.  EINVAL is the magic code\n+\t\t\t * for the kernel declining to cache the mapping.\n+\t\t\t */\n+\t\t\tif (ret != -ENOMEM && ret != -EINVAL)\n+\t\t\t\ttranslate_error(fs, attr_ino, -ret);\n+\t\t\tgoto out_unlock;\n+\t\t}\n+\n+\t\tfuse_file_iomap_retry_cache(read);\n+\t}\n+\n out_unlock:\n \tfuse2fs_finish(ff, ret);\n \treturn ret;\n@@ -7259,6 +7283,10 @@ static struct fuse_opt fuse2fs_opts[] = {\n #ifdef HAVE_CLOCK_MONOTONIC\n \tFUSE2FS_OPT(\"timing\",\t\ttiming,\t\t\t1),\n #endif\n+#ifdef HAVE_FUSE_IOMAP\n+\tFUSE2FS_OPT(\"iomap_cache\",\tiomap_cache,\t\t1),\n+\tFUSE2FS_OPT(\"noiomap_cache\",\tiomap_cache,\t\t0),\n+#endif\n \n #ifdef HAVE_FUSE_IOMAP\n #ifdef MS_LAZYTIME\n@@ -7539,6 +7567,7 @@ int main(int argc, char *argv[])\n \t\t.iomap_want = FT_DEFAULT,\n \t\t.iomap_state = IOMAP_UNKNOWN,\n \t\t.iomap_dev = FUSE_IOMAP_DEV_NULL,\n+\t\t.iomap_cache = 1,\n #endif\n #ifdef HAVE_FUSE_LOOPDEV\n \t\t.loop_fd = -1,\n",
    "prefixes": [
        "1/4"
    ]
}