get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230308,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230308/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747214787.4107473.16073984189804321726.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": "<177747214787.4107473.16073984189804321726.stgit@frogsfrogsfrogs>",
    "date": "2026-04-29T14:56:16",
    "name": "[14/19] fuse2fs: configure block device block size",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "35aa67bba567c935d807c69e0ec0c365d2341db3",
    "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/177747214787.4107473.16073984189804321726.stgit@frogsfrogsfrogs/mbox/",
    "series": [
        {
            "id": 502087,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502087/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502087",
            "date": "2026-04-29T14:53:09",
            "name": "[01/19] fuse2fs: implement bare minimum iomap for file mapping reporting",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502087/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230308/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230308/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <SRS0=ypd3=C4=vger.kernel.org=linux-ext4+bounces-16203-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=QasxMH05;\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=ypd3=c4=vger.kernel.org=linux-ext4+bounces-16203-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=QasxMH05;\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-16203-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=\"QasxMH05\"",
            "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 4g5L411p6Bz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:56:49 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5L411J2Nz4wM1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:56:49 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g5L411CDzz4wSR; Thu, 30 Apr 2026 00:56:49 +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 4g5L3x5HRdz4wM1\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 00:56:45 +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 3595E3009B27\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 14:56:19 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id E4EA8342CB0;\n\tWed, 29 Apr 2026 14:56:17 +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 A78C527EFE9;\n\tWed, 29 Apr 2026 14:56:17 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 3DD7EC19425;\n\tWed, 29 Apr 2026 14:56:17 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777474609; cv=pass;\n\tb=sEGb8RtMCZRC9cPO+Y7aOtpOep8UbmmlZvwqmUH3WA/RGB/wnC6vWWcjpwsbiXGcK/zIqp3cIeZ+7KyD+xvJp9gCzaERcZGHgl+Eu1dzmJ3cucR1/JQlRZ5hpilIIzYkI66yYAI9G1d+EP5/azxVE8AFUYSyTbhO2kAraIEz2vzq5ut80KKif+VxaMfeLnvRnVcaFTK7aA5oGsskSN0D2/RqiRLYxfo9J2XjUBqKmFD6g53cn19ZfzVXVGaMe7aVAcDFASfsDOp87tymzuxYX2tkLmegxn7aos/Lz6evVCqwwh58ttB5jFfMbwmJULO/qW73mvssmUo+jGtbVpYx/Q==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777474577; cv=none;\n b=XFNd0s395Bzu5IRz8ZAKnfU9dQAaR8oYUFnz92cgwud+cN/i2rhqAFbRXs3wDcyrLhawyQ4V1moY5FCXGyFHBcmKkQ9dKECc6SFk0K9LrnZYmnizoHWEiuzYZB77Zb4bzmbzfYGkaXmD6GC0vK8rkfaYcFyIk3Xz905W0NlDT0E="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777474609; c=relaxed/relaxed;\n\tbh=CGXoJH8NUu4wgm6h1Fgf06+/zA5PyRGvCUaRXBmAGbA=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=BhIsWeb9FPXCck7nle/hs5mi6KDIrLRZfRtV+TTfsFmQk896w9u0xudWUZup5OwcF+kUIGMZA6e32zc9T2BPIE9Vj5Nb2QIeYdFVlwxV+ve1eY4mU58Ezh3JkYnk1Ee4DvDv5YQYDd+DQtPDEi0iroJBg3n7aX5cIrFeCNUYQyafOepYSpdaFDv7KZycYm1mepizGjcAzkjcRyG70cPxsoEmRCByRgepieY+glqcMEeAac+y+ON7clTa5o0aYXyyeDWdvMaVb8YaNYFLCr7l8ckR+7hv7EzCZT0+/VitMIkzIy92+XO1khnCsQRzklNPRyORMdNovr4fRcEPdmGWRg==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777474577; c=relaxed/simple;\n\tbh=Gp4tKHLmNcgnhXdR79ayHiGMEIzy1dTJzbSE3IvNSHc=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=HBYCM4is2V+GGy2llXbATLlIdPJaAWl7PAau/7ciTAuGVBh8yq7T8eF2nX+MuUklpyTRY3v1T5nTmxT8ZpUi0KIXafcq0wSJa4iuuTNaMmFOplx3UZxNn/+xA0iJXcNmcgWYGRINIPJVSUdeuZsF7hwsP/Qb3U9vBcZlHqBh4/E="
        ],
        "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=QasxMH05; 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-16203-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=QasxMH05; 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=1777474577;\n\tbh=Gp4tKHLmNcgnhXdR79ayHiGMEIzy1dTJzbSE3IvNSHc=;\n\th=Date:Subject:From:To:Cc:In-Reply-To:References:From;\n\tb=QasxMH05kEEkSWxzrIDxObwckTSuQL4loFrXdkbVZ8mEbeWIlTa1HGTvPwKHJfJms\n\t MuLVyL959IlBmrueptdFXuwmxShPayQL7UuQ8j0mZ1yVCWW3vcm5WIBdKcsT4whFAq\n\t H0djGTFqBWHK0CIxjLMtaCN7yRosqXVZ/xhx0vHFIFSK+eIKbbWoXmN7mJMSqmK5vS\n\t fhh5MJwH4sVvoBZPKwSDFiLYIgaWqDVwfGhD4ifFFEM85CAdAaYHb55cQtZq4g6Zpq\n\t S7dZz5byrSl4WEO1FqI3v/xK8VB5M43gAzdUueDUXomY77iOTzTG3peeeGxSvyHwbk\n\t mVr3UX6A+zrjA==",
        "Date": "Wed, 29 Apr 2026 07:56:16 -0700",
        "Subject": "[PATCH 14/19] fuse2fs: configure block device block size",
        "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": "<177747214787.4107473.16073984189804321726.stgit@frogsfrogsfrogs>",
        "In-Reply-To": "<177747214459.4107473.9520724883867588970.stgit@frogsfrogsfrogs>",
        "References": "<177747214459.4107473.9520724883867588970.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\nSet the blocksize of the block device to the filesystem blocksize.\nThis prevents the bdev pagecache from caching file data blocks that\niomap will read and write directly.  Cache duplication is dangerous.\n\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n fuse4fs/fuse4fs.c |   43 +++++++++++++++++++++++++++++++++++++++++++\n misc/fuse2fs.c    |   43 +++++++++++++++++++++++++++++++++++++++++++\n 2 files changed, 86 insertions(+)",
    "diff": "diff --git a/fuse4fs/fuse4fs.c b/fuse4fs/fuse4fs.c\nindex f9c905c0805d9e..e92a85da0115ca 100644\n--- a/fuse4fs/fuse4fs.c\n+++ b/fuse4fs/fuse4fs.c\n@@ -6891,6 +6891,45 @@ static off_t fuse4fs_max_size(struct fuse4fs *ff, off_t upper_limit)\n \treturn res;\n }\n \n+/*\n+ * Set the block device's blocksize to the fs blocksize.\n+ *\n+ * This is required to avoid creating uptodate bdev pagecache that aliases file\n+ * data blocks because iomap reads and writes directly to file data blocks.\n+ */\n+static int fuse4fs_set_bdev_blocksize(struct fuse4fs *ff, int fd)\n+{\n+\tint blocksize = ff->fs->blocksize;\n+\tint set_error;\n+\tint ret;\n+\n+\tret = ioctl(fd, BLKBSZSET, &blocksize);\n+\tif (!ret)\n+\t\treturn 0;\n+\n+\t/*\n+\t * Save the original errno so we can report that if the block device\n+\t * blocksize isn't set in an agreeable way.\n+\t */\n+\tset_error = errno;\n+\n+\tret = ioctl(fd, BLKBSZGET, &blocksize);\n+\tif (ret)\n+\t\tgoto out_bad;\n+\n+\t/* Pretend that BLKBSZSET rejected our proposed block size */\n+\tif (blocksize > ff->fs->blocksize) {\n+\t\tset_error = EINVAL;\n+\t\tgoto out_bad;\n+\t}\n+\n+\treturn 0;\n+out_bad:\n+\terr_printf(ff, \"%s: cannot set blocksize %u: %s\\n\", __func__,\n+\t\t   blocksize, strerror(set_error));\n+\treturn -EIO;\n+}\n+\n static int fuse4fs_iomap_config_devices(struct fuse4fs *ff)\n {\n \terrcode_t err;\n@@ -6901,6 +6940,10 @@ static int fuse4fs_iomap_config_devices(struct fuse4fs *ff)\n \tif (err)\n \t\treturn translate_error(ff->fs, 0, err);\n \n+\tret = fuse4fs_set_bdev_blocksize(ff, fd);\n+\tif (ret)\n+\t\treturn ret;\n+\n \tret = fuse_lowlevel_iomap_device_add(ff->fuse, fd, 0);\n \tif (ret < 0) {\n \t\tdbg_printf(ff, \"%s: cannot register iomap dev fd=%d, err=%d\\n\",\ndiff --git a/misc/fuse2fs.c b/misc/fuse2fs.c\nindex c6472a1c45506f..c922c7fb45d311 100644\n--- a/misc/fuse2fs.c\n+++ b/misc/fuse2fs.c\n@@ -6211,6 +6211,45 @@ static off_t fuse2fs_max_size(struct fuse2fs *ff, off_t upper_limit)\n \treturn res;\n }\n \n+/*\n+ * Set the block device's blocksize to the fs blocksize.\n+ *\n+ * This is required to avoid creating uptodate bdev pagecache that aliases file\n+ * data blocks because iomap reads and writes directly to file data blocks.\n+ */\n+static int fuse2fs_set_bdev_blocksize(struct fuse2fs *ff, int fd)\n+{\n+\tint blocksize = ff->fs->blocksize;\n+\tint set_error;\n+\tint ret;\n+\n+\tret = ioctl(fd, BLKBSZSET, &blocksize);\n+\tif (!ret)\n+\t\treturn 0;\n+\n+\t/*\n+\t * Save the original errno so we can report that if the block device\n+\t * blocksize isn't set in an agreeable way.\n+\t */\n+\tset_error = errno;\n+\n+\tret = ioctl(fd, BLKBSZGET, &blocksize);\n+\tif (ret)\n+\t\tgoto out_bad;\n+\n+\t/* Pretend that BLKBSZSET rejected our proposed block size */\n+\tif (blocksize > ff->fs->blocksize) {\n+\t\tset_error = EINVAL;\n+\t\tgoto out_bad;\n+\t}\n+\n+\treturn 0;\n+out_bad:\n+\terr_printf(ff, \"%s: cannot set blocksize %u: %s\\n\", __func__,\n+\t\t   blocksize, strerror(set_error));\n+\treturn -EIO;\n+}\n+\n static int fuse2fs_iomap_config_devices(struct fuse2fs *ff)\n {\n \terrcode_t err;\n@@ -6221,6 +6260,10 @@ static int fuse2fs_iomap_config_devices(struct fuse2fs *ff)\n \tif (err)\n \t\treturn translate_error(ff->fs, 0, err);\n \n+\tret = fuse2fs_set_bdev_blocksize(ff, fd);\n+\tif (ret)\n+\t\treturn ret;\n+\n \tret = fuse_fs_iomap_device_add(fd, 0);\n \tif (ret < 0) {\n \t\tdbg_printf(ff, \"%s: cannot register iomap dev fd=%d, err=%d\\n\",\n",
    "prefixes": [
        "14/19"
    ]
}