get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216334,
    "url": "http://patchwork.ozlabs.org/api/patches/2216334/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260326095354.16340-81-jack@suse.cz/",
    "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": "<20260326095354.16340-81-jack@suse.cz>",
    "list_archive_url": null,
    "date": "2026-03-26T09:54:33",
    "name": "[39/42] minix: Track metadata bhs in fs-private inode part",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "427a42dc8950378bc9d85e80f99ec928489da593",
    "submitter": {
        "id": 363,
        "url": "http://patchwork.ozlabs.org/api/people/363/?format=api",
        "name": "Jan Kara",
        "email": "jack@suse.cz"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260326095354.16340-81-jack@suse.cz/mbox/",
    "series": [
        {
            "id": 497561,
            "url": "http://patchwork.ozlabs.org/api/series/497561/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=497561",
            "date": "2026-03-26T09:53:55",
            "name": "fs: Move metadata bh tracking from address_space",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497561/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216334/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216334/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=9JCr=B2=vger.kernel.org=linux-ext4+bounces-15437-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 (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=k2IXJsi0;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=+Cu1Sqrs;\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.a=rsa-sha256 header.s=susede2_rsa header.b=k2IXJsi0;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=+Cu1Sqrs;\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=9jcr=b2=vger.kernel.org=linux-ext4+bounces-15437-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c0a:e001:db::12fc:5321\"\n arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=none (p=none dis=none) header.from=suse.cz",
            "gandalf.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=k2IXJsi0;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=+Cu1Sqrs;\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.a=rsa-sha256 header.s=susede2_rsa header.b=k2IXJsi0;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=+Cu1Sqrs;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15437-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"k2IXJsi0\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"+Cu1Sqrs\";\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"k2IXJsi0\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"+Cu1Sqrs\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=195.135.223.131",
            "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=suse.cz",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=suse.cz",
            "smtp-out2.suse.de;\n\tnone"
        ],
        "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 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhKQG5PWXz1y1G\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 21:14:46 +1100 (AEDT)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fhKQ92xF5z4wBB\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 21:14:41 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fhKQ92lPbz4w9r; Thu, 26 Mar 2026 21:14:41 +1100 (AEDT)",
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::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 4fhKQ55gq7z4wBB\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 26 Mar 2026 21:14:37 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id B846531BE1D8\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 26 Mar 2026 10:02:06 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 98C5B3D9DD4;\n\tThu, 26 Mar 2026 09:58:07 +0000 (UTC)",
            "from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id E5DFA3C13E3\n\tfor <linux-ext4@vger.kernel.org>; Thu, 26 Mar 2026 09:58:02 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby smtp-out2.suse.de (Postfix) with ESMTPS id BBDDF5BDD3;\n\tThu, 26 Mar 2026 09:55:01 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id A5F274A0AB;\n\tThu, 26 Mar 2026 09:55:01 +0000 (UTC)",
            "from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n\tby imap1.dmz-prg2.suse.org with ESMTPSA\n\tid 9gGRKHUCxWkGYQAAD6G6ig\n\t(envelope-from <jack@suse.cz>); Thu, 26 Mar 2026 09:55:01 +0000",
            "by quack3.suse.cz (Postfix, from userid 1000)\n\tid D678FA0C7F; Thu, 26 Mar 2026 10:54:49 +0100 (CET)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774520081; cv=pass;\n\tb=D4kQocoukJGdc6j080bX+gB0aoKicN9OZkaLf7CSrp39JKhrJ3gLXD5YFny/Nq+7qJhwlTIsGs5AfVawycks/Zf7LgQ2upX+jIC8ZMjsBeo4RrNKgcVrYQYuYxFo5HRvOui45/kItcI122KoZD6FHYjDHU40sKGYe2uzE4eL7bAJkHw/YlKNYr8XFSRqHgCUFAycIjV4E/ufb0dsTrW7PxgCLqn49wu/Ofe6K4U3kW+tDG/eDYIutx87RzGVM7G75evNX5k/nWr96MkWorBp1QSd4TjcLKf5m5DZgDICfjwXsGLTndcZ2MEG0xIuXBiKo8CjKP++HpM9cr4qflPyiw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774519086; cv=none;\n b=fWdihGegYKkLEpw+k3gHWUrR5DxsgTkoglBX1I43UeZFKWY6T4kSUhndZ5dYmd81UDQQ7iMLVmnelDXfwPP9ok8BH1GaoFENcoOCQcPf8Se81OQE707MVkMVDn4HxuEhDBEnSlmfcJTC/A9mKLxpK3xDhwvv2oeoX98hQq9QGkY="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774520081; c=relaxed/relaxed;\n\tbh=7q8Kx1FkVvzvC3Q+vN0M/TZAWD4PkwxVk8bUtCe8P+o=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=uNg1KiehxK/q5ASLurFlkt9EVp0k6H1ltCY2JbnYnhkt9gI1yy6S2PPnRw43nWVGN0fsqlff5QSl3I4JEzezm5RuAvFDp6dTFNw7h1hi1zRtHMfB7DCpbAo2JBikPc0TRp0bmE3nvBJBvrYAaIp3yzHcvm4h+mJNbnXCBd2s5vfn2E2nVFSwxYeZQ7iDIDeMICd48plFaT9V35bkUnotYF+DINksuu2DYoyrpMgOsVsWGCplgSy/VW2JrW/AcL5+JaEbFpuzydNq2JnKY3ekcxiifPPfbViFqGUyIvTFHG6dxFM6n+K4+je5haTXlQS443I+4xbZNNbb1JvoO2A8Uw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774519086; c=relaxed/simple;\n\tbh=LB5f9ZM6VTG6f7M+4eM1ibxL/c9eLkxT6oy6CEVQ+ic=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=jO21ViXZPzhkT3YXzMXgCeWbo/+u74fUWpaig3SvAcQQ0NDrALRP7P/rdDrG6mSEe4T4vd2//48zSfMQzkbgEx//kj1mq9gpbHlJdIW2KjjytC9yqatoUdZBwEoejOQS/xaFsBT9qiwcL77Swag8d0bHrphy70z48CIZ2ixBdkI="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=none (p=none dis=none) header.from=suse.cz; dkim=pass (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=k2IXJsi0;\n dkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=+Cu1Sqrs;\n dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.a=rsa-sha256 header.s=susede2_rsa header.b=k2IXJsi0;\n dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=+Cu1Sqrs; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15437-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=suse.cz;\n spf=pass smtp.mailfrom=suse.cz;\n dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=k2IXJsi0;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=+Cu1Sqrs;\n dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=k2IXJsi0;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=+Cu1Sqrs; arc=none smtp.client-ip=195.135.223.131"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n\tt=1774518901;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=7q8Kx1FkVvzvC3Q+vN0M/TZAWD4PkwxVk8bUtCe8P+o=;\n\tb=k2IXJsi0SUU38wKdBvypl6ZnpttNNVynrB3dl8xeNInC4Con3yagBcilXHWfutQEEJbsMC\n\tL98tWf6D/jTdUcM9c1tX7bH8gbUF2eeuGhvAXeX7DsfeYoQqqN0sfiYM0AgAlxETMglZWg\n\tagE7qYC0vhveRgQOY7kAluMopfxQHDs=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1774518901;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=7q8Kx1FkVvzvC3Q+vN0M/TZAWD4PkwxVk8bUtCe8P+o=;\n\tb=+Cu1Sqrs9JhQuPOKTkxkGxMDSyqfn0ulyrAC4vq9Q6SIu1uXxzDRpvXlp7Kp2pP2AaLPXE\n\tPHwbdO3200g7UqDA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n\tt=1774518901;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=7q8Kx1FkVvzvC3Q+vN0M/TZAWD4PkwxVk8bUtCe8P+o=;\n\tb=k2IXJsi0SUU38wKdBvypl6ZnpttNNVynrB3dl8xeNInC4Con3yagBcilXHWfutQEEJbsMC\n\tL98tWf6D/jTdUcM9c1tX7bH8gbUF2eeuGhvAXeX7DsfeYoQqqN0sfiYM0AgAlxETMglZWg\n\tagE7qYC0vhveRgQOY7kAluMopfxQHDs=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1774518901;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=7q8Kx1FkVvzvC3Q+vN0M/TZAWD4PkwxVk8bUtCe8P+o=;\n\tb=+Cu1Sqrs9JhQuPOKTkxkGxMDSyqfn0ulyrAC4vq9Q6SIu1uXxzDRpvXlp7Kp2pP2AaLPXE\n\tPHwbdO3200g7UqDA=="
        ],
        "From": "Jan Kara <jack@suse.cz>",
        "To": "<linux-fsdevel@vger.kernel.org>",
        "Cc": "<linux-block@vger.kernel.org>,\n\tChristian Brauner <brauner@kernel.org>,\n\tAl Viro <viro@ZenIV.linux.org.uk>,\n\t<linux-ext4@vger.kernel.org>,\n\tTed Tso <tytso@mit.edu>,\n\t\"Tigran A. Aivazian\" <aivazian.tigran@gmail.com>,\n\tDavid Sterba <dsterba@suse.com>,\n\tOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>,\n\tMuchun Song <muchun.song@linux.dev>,\n\tOscar Salvador <osalvador@suse.de>,\n\tDavid Hildenbrand <david@kernel.org>,\n\tlinux-mm@kvack.org,\n\tlinux-aio@kvack.org,\n\tBenjamin LaHaise <bcrl@kvack.org>,\n\tJan Kara <jack@suse.cz>",
        "Subject": "[PATCH 39/42] minix: Track metadata bhs in fs-private inode part",
        "Date": "Thu, 26 Mar 2026 10:54:33 +0100",
        "Message-ID": "<20260326095354.16340-81-jack@suse.cz>",
        "X-Mailer": "git-send-email 2.51.0",
        "In-Reply-To": "<20260326082428.31660-1-jack@suse.cz>",
        "References": "<20260326082428.31660-1-jack@suse.cz>",
        "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",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=4731; i=jack@suse.cz;\n h=from:subject; bh=LB5f9ZM6VTG6f7M+4eM1ibxL/c9eLkxT6oy6CEVQ+ic=;\n b=owEBbQGS/pANAwAIAZydqgc/ZEDZAcsmYgBpxQJTqj+aOzlKcPkCimm7IqpQm2fU61zijKeKW\n 5HhKtDTckGJATMEAAEIAB0WIQSrWdEr1p4yirVVKBycnaoHP2RA2QUCacUCUwAKCRCcnaoHP2RA\n 2TCJB/490VA3we2/AivSVCUBWocvHEyG25ixMq2H4qxIqT2Kd/r8p/4yiXj8YEXR3cO4jiD0KX/\n pofRf+wwtm3lsZyz4ScERTu11HFuTm40DjhGPiJ24IHIo90+iANsl7fNt777dCSU0VWbJliaWQJ\n D/QBlJhGbKvE6k1GJEmb1ifthzuddz473YVtw3fBo4dJ9Wfqj6CAiYTyK0iIGI/k48DYVe5ENlk\n eQ5ILiyrBw/Zz/i+kH2ELXLuvluJKGeLnjQOMG2LtuiSmuWa6N1YDiFL66rlbovT5eMI7EslIZz\n 67ugOsQXYmuIUBf9i1KIjiefsjCTwrw+vMGNu0WLpksqgJps",
        "X-Developer-Key": "i=jack@suse.cz; a=openpgp;\n fpr=93C6099A142276A28BBE35D815BC833443038D8C",
        "Content-Transfer-Encoding": "8bit",
        "X-Spam-Score": "-1.30",
        "X-Spam-Level": "",
        "X-Spamd-Result": "default: False [-1.30 / 50.00];\n\tBAYES_HAM(-3.00)[100.00%];\n\tSUSPICIOUS_RECIPS(1.50)[];\n\tNEURAL_HAM_LONG(-1.00)[-1.000];\n\tMID_CONTAINS_FROM(1.00)[];\n\tR_MISSING_CHARSET(0.50)[];\n\tNEURAL_HAM_SHORT(-0.20)[-1.000];\n\tMIME_GOOD(-0.10)[text/plain];\n\tTAGGED_RCPT(0.00)[];\n\tMIME_TRACE(0.00)[0:+];\n\tFUZZY_RATELIMITED(0.00)[rspamd.com];\n\tRCVD_VIA_SMTP_AUTH(0.00)[];\n\tTO_DN_SOME(0.00)[];\n\tRCPT_COUNT_TWELVE(0.00)[16];\n\tARC_NA(0.00)[];\n\tRCVD_COUNT_THREE(0.00)[3];\n\tDKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tFROM_HAS_DN(0.00)[];\n\tFREEMAIL_CC(0.00)[vger.kernel.org,kernel.org,ZenIV.linux.org.uk,mit.edu,gmail.com,suse.com,mail.parknet.co.jp,linux.dev,suse.de,kvack.org,suse.cz];\n\tR_RATELIMIT(0.00)[to_ip_from(RLck8brw5hxmszoarioc7838it),to(RLpnp1psq57oqao6ocwdpbxen9)];\n\tFROM_EQ_ENVFROM(0.00)[];\n\tTO_MATCH_ENVRCPT_ALL(0.00)[];\n\tDBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo];\n\tRCVD_TLS_LAST(0.00)[];\n\tFREEMAIL_ENVRCPT(0.00)[gmail.com]",
        "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_MISSING,\n\tHEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,\n\tSPF_PASS autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "content": "Track metadata bhs for an inode in fs-private part of the inode.\n\nSigned-off-by: Jan Kara <jack@suse.cz>\n---\n fs/minix/dir.c          |  2 +-\n fs/minix/file.c         | 10 +++++++++-\n fs/minix/inode.c        |  6 ++++--\n fs/minix/itree_common.c | 11 +++++++----\n fs/minix/minix.h        |  3 +++\n 5 files changed, 24 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/fs/minix/dir.c b/fs/minix/dir.c\nindex a74d000327fa..361d26d87d2e 100644\n--- a/fs/minix/dir.c\n+++ b/fs/minix/dir.c\n@@ -23,7 +23,7 @@ const struct file_operations minix_dir_operations = {\n \t.llseek\t\t= generic_file_llseek,\n \t.read\t\t= generic_read_dir,\n \t.iterate_shared\t= minix_readdir,\n-\t.fsync\t\t= generic_buffers_fsync,\n+\t.fsync\t\t= minix_fsync,\n };\n \n /*\ndiff --git a/fs/minix/file.c b/fs/minix/file.c\nindex 282b3cd1fea3..86e5943cd2ff 100644\n--- a/fs/minix/file.c\n+++ b/fs/minix/file.c\n@@ -7,8 +7,16 @@\n  *  minix regular file handling primitives\n  */\n \n+#include <linux/buffer_head.h>\n #include \"minix.h\"\n \n+int minix_fsync(struct file *file, loff_t start, loff_t end, int datasync)\n+{\n+\treturn mmb_fsync(file,\n+\t\t\t&minix_i(file->f_mapping->host)->i_metadata_bhs,\n+\t\t\tstart, end, datasync);\n+}\n+\n /*\n  * We have mostly NULLs here: the current defaults are OK for\n  * the minix filesystem.\n@@ -18,7 +26,7 @@ const struct file_operations minix_file_operations = {\n \t.read_iter\t= generic_file_read_iter,\n \t.write_iter\t= generic_file_write_iter,\n \t.mmap_prepare\t= generic_file_mmap_prepare,\n-\t.fsync\t\t= generic_buffers_fsync,\n+\t.fsync\t\t= minix_fsync,\n \t.splice_read\t= filemap_splice_read,\n };\n \ndiff --git a/fs/minix/inode.c b/fs/minix/inode.c\nindex ab7c06efb139..63f378f38d43 100644\n--- a/fs/minix/inode.c\n+++ b/fs/minix/inode.c\n@@ -49,9 +49,9 @@ static void minix_evict_inode(struct inode *inode)\n \t\tinode->i_size = 0;\n \t\tminix_truncate(inode);\n \t} else {\n-\t\tsync_mapping_buffers(&inode->i_data);\n+\t\tmmb_sync(&minix_i(inode)->i_metadata_bhs);\n \t}\n-\tinvalidate_inode_buffers(inode);\n+\tmmb_invalidate(&minix_i(inode)->i_metadata_bhs);\n \tclear_inode(inode);\n \tif (!inode->i_nlink)\n \t\tminix_free_inode(inode);\n@@ -85,6 +85,8 @@ static struct inode *minix_alloc_inode(struct super_block *sb)\n \tei = alloc_inode_sb(sb, minix_inode_cachep, GFP_KERNEL);\n \tif (!ei)\n \t\treturn NULL;\n+\tmmb_init(&ei->i_metadata_bhs, &ei->vfs_inode.i_data);\n+\n \treturn &ei->vfs_inode;\n }\n \ndiff --git a/fs/minix/itree_common.c b/fs/minix/itree_common.c\nindex dad131e30c05..c3cd2c75af9c 100644\n--- a/fs/minix/itree_common.c\n+++ b/fs/minix/itree_common.c\n@@ -98,7 +98,7 @@ static int alloc_branch(struct inode *inode,\n \t\t*branch[n].p = branch[n].key;\n \t\tset_buffer_uptodate(bh);\n \t\tunlock_buffer(bh);\n-\t\tmark_buffer_dirty_inode(bh, inode);\n+\t\tmmb_mark_buffer_dirty(bh, &minix_i(inode)->i_metadata_bhs);\n \t\tparent = nr;\n \t}\n \tif (n == num)\n@@ -135,7 +135,8 @@ static inline int splice_branch(struct inode *inode,\n \n \t/* had we spliced it onto indirect block? */\n \tif (where->bh)\n-\t\tmark_buffer_dirty_inode(where->bh, inode);\n+\t\tmmb_mark_buffer_dirty(where->bh,\n+\t\t\t\t      &minix_i(inode)->i_metadata_bhs);\n \n \tmark_inode_dirty(inode);\n \treturn 0;\n@@ -328,14 +329,16 @@ static inline void truncate (struct inode * inode)\n \t\tif (partial == chain)\n \t\t\tmark_inode_dirty(inode);\n \t\telse\n-\t\t\tmark_buffer_dirty_inode(partial->bh, inode);\n+\t\t\tmmb_mark_buffer_dirty(partial->bh,\n+\t\t\t\t\t      &minix_i(inode)->i_metadata_bhs);\n \t\tfree_branches(inode, &nr, &nr+1, (chain+n-1) - partial);\n \t}\n \t/* Clear the ends of indirect blocks on the shared branch */\n \twhile (partial > chain) {\n \t\tfree_branches(inode, partial->p + 1, block_end(partial->bh),\n \t\t\t\t(chain+n-1) - partial);\n-\t\tmark_buffer_dirty_inode(partial->bh, inode);\n+\t\tmmb_mark_buffer_dirty(partial->bh,\n+\t\t\t\t      &minix_i(inode)->i_metadata_bhs);\n \t\tbrelse (partial->bh);\n \t\tpartial--;\n \t}\ndiff --git a/fs/minix/minix.h b/fs/minix/minix.h\nindex 7e1f652f16d3..f2025c9b5825 100644\n--- a/fs/minix/minix.h\n+++ b/fs/minix/minix.h\n@@ -19,6 +19,7 @@ struct minix_inode_info {\n \t\t__u16 i1_data[16];\n \t\t__u32 i2_data[16];\n \t} u;\n+\tstruct mapping_metadata_bhs i_metadata_bhs;\n \tstruct inode vfs_inode;\n };\n \n@@ -57,6 +58,8 @@ unsigned long minix_count_free_blocks(struct super_block *sb);\n int minix_getattr(struct mnt_idmap *, const struct path *,\n \t\tstruct kstat *, u32, unsigned int);\n int minix_prepare_chunk(struct folio *folio, loff_t pos, unsigned len);\n+struct mapping_metadata_bhs *minix_get_metadata_bhs(struct inode *inode);\n+int minix_fsync(struct file *file, loff_t start, loff_t end, int datasync);\n \n extern void V1_minix_truncate(struct inode *);\n extern void V2_minix_truncate(struct inode *);\n",
    "prefixes": [
        "39/42"
    ]
}