get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216332,
    "url": "http://patchwork.ozlabs.org/api/patches/2216332/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260326095354.16340-76-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-76-jack@suse.cz>",
    "list_archive_url": null,
    "date": "2026-03-26T09:54:28",
    "name": "[34/42] ext2: Track metadata bhs in fs-private inode part",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "f4990cefcae57cbee12350f228741fa930bb2792",
    "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-76-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/2216332/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216332/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=GSyt=B2=vger.kernel.org=linux-ext4+bounces-15432-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=Ux56Y7de;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=cXbY8Urw;\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=Ux56Y7de;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=cXbY8Urw;\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=gsyt=b2=vger.kernel.org=linux-ext4+bounces-15432-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.234.253.10 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=Ux56Y7de;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=cXbY8Urw;\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=Ux56Y7de;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=cXbY8Urw;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15432-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=\"Ux56Y7de\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"cXbY8Urw\";\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"Ux56Y7de\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"cXbY8Urw\"",
            "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\tdkim=pass header.d=suse.cz header.s=susede2_rsa header.b=Ux56Y7de;\n\tdkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=cXbY8Urw"
        ],
        "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 4fhKMW59RHz1y1G\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 21:12:23 +1100 (AEDT)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fhKMW4WKBz4wB7\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 21:12:23 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fhKMW4QGCz4wBB; Thu, 26 Mar 2026 21:12:23 +1100 (AEDT)",
            "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\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 4fhKMS1sWwz4wB7\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 26 Mar 2026 21:12:20 +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 7D6D231931A8\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 26 Mar 2026 10:00:48 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 40D813CEBBB;\n\tThu, 26 Mar 2026 09:57:34 +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 7974D39656D\n\tfor <linux-ext4@vger.kernel.org>; Thu, 26 Mar 2026 09:57:32 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org\n [IPv6:2a07:de40:b281:104: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 9BBCD5BDC2;\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 833284A0B1;\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 XacHIHUCxWn2YAAAD6G6ig\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 AA7A7A0C78; Thu, 26 Mar 2026 10:54:49 +0100 (CET)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774519943; cv=pass;\n\tb=O/jbz5b8wZxWuu3J3x813A9/jrM8fbxjbrNCulx4xd9PKn6cTZH+Ri1wFDXnwJ95OdbAsY1ocf8nbSc8aC4iViuS6QgkSl9U9FiVp5+Xtveu8WF+lrhW761prHpRmorjic29ztMyH/tWzmiaK+oBXumdaes8dCDylgtM54n9/hBzlstO2kgbTaZnlIEYmwUb9bDvKsmXDovryCucaplFVRjpK7PlL520+pyJdgNSDiq2EXzL8LRcKxLqJoGY1zdIUeevy7pW2oLRDX9nrDhjwHGllz2G5UbMFJYhB2bYkDjfUwXMElV862f6Ks4k1h54/nWksu20uS5oCZOrli1RsA==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774519054; cv=none;\n b=qiC3xQjx/ZOIRogVzhqpXfsQX47q7lkf0mghO+0cknEuoRkA46CH+2obDgu+TvpNcf45V0zayk4tb1cGTpQzT+SLqU9BB7mZWZhcdXrpjW6GZyjLIFW9T8VZQ+eYTIitmUl7qAn8F36o0+pBMw6Mm869ySgsOZU5eWOnXvGgwEw="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774519943; c=relaxed/relaxed;\n\tbh=6APxvH5SmdcIHWcl7TBM1pTXqnKMUAJBlKozlmMHFBc=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=bXO0CO/53r5tBabkC2jE3lB0mIPr+kznG1T+S+eYVZCUCG8qngpYOqtx4n41Bb4bPsMI3PW0+ptCj7JX2aFhqioD2xWKe3Q9kD9cflSDFtecEw6nRuPb2UEJHDqdNETW/y5OgEAtPhY1eKh50eR0dPkPSxCacJxMNXIp0W7zsgu1wYeZmv3IblEANwn7fhIhN/osALNpofawY2cIFRii+lZQISEgPjiAKlDO6Ul5Y0M60Hhp2Nfj7xmnl9SiMyX9wmP0toxTAtTxYcJeV5OF7g119sLsm0XqizUV/GdawZd1wbLxVCdMAptBcgyCDCd6L/ib4e654Oj6wICFmLuT1A==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774519054; c=relaxed/simple;\n\tbh=zcHN97EwD1Y/vlUwirfZ68msBRzbfUd919+cBu1Gy8s=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=GMUv2/etb7Mqi2nHRgQ1tLMbPevLP3819uNkKrXmHRkHgndawpTnk2gIKFCb/SJk2IfsDgBl3EMhUTIFNCaXxrhcJhnqDfj6gBRHYkImaD+i+8/ehuXL992Bt4SdGBOQayb54zMGaK7A5HEfyRgpTEKtzfHxsVeu94+OPeCMzvU="
        ],
        "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=Ux56Y7de;\n dkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=cXbY8Urw;\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=Ux56Y7de;\n dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=cXbY8Urw; dkim-atps=neutral;\n spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15432-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=Ux56Y7de;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=cXbY8Urw;\n dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=Ux56Y7de;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=cXbY8Urw; 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=6APxvH5SmdcIHWcl7TBM1pTXqnKMUAJBlKozlmMHFBc=;\n\tb=Ux56Y7de55mwt3O75RUMHz6DquJzQOf4siyFs/s+smE6/jpzxY/FTEJ1JRUlFsOzEbLuJV\n\tTSANMbSzS16KRgEcX6Zt95zXRzW0MiKyjUIg/nvC8hMb+dO1qjxLfKUCXV7tltvI1+inEj\n\tyOOgIl3wtK0R2dUhUk7Q03jrea6C1b0=",
            "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=6APxvH5SmdcIHWcl7TBM1pTXqnKMUAJBlKozlmMHFBc=;\n\tb=cXbY8Urw21mohEWbRXIRtbAIhbpoHjoLVWQVgQ2Ycu0Cqom3vHrrxr0k6DF3vlVYoOEcWD\n\tDDvfJc521BOCI8Cw==",
            "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=6APxvH5SmdcIHWcl7TBM1pTXqnKMUAJBlKozlmMHFBc=;\n\tb=Ux56Y7de55mwt3O75RUMHz6DquJzQOf4siyFs/s+smE6/jpzxY/FTEJ1JRUlFsOzEbLuJV\n\tTSANMbSzS16KRgEcX6Zt95zXRzW0MiKyjUIg/nvC8hMb+dO1qjxLfKUCXV7tltvI1+inEj\n\tyOOgIl3wtK0R2dUhUk7Q03jrea6C1b0=",
            "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=6APxvH5SmdcIHWcl7TBM1pTXqnKMUAJBlKozlmMHFBc=;\n\tb=cXbY8Urw21mohEWbRXIRtbAIhbpoHjoLVWQVgQ2Ycu0Cqom3vHrrxr0k6DF3vlVYoOEcWD\n\tDDvfJc521BOCI8Cw=="
        ],
        "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 34/42] ext2: Track metadata bhs in fs-private inode part",
        "Date": "Thu, 26 Mar 2026 10:54:28 +0100",
        "Message-ID": "<20260326095354.16340-76-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=4123; i=jack@suse.cz;\n h=from:subject; bh=zcHN97EwD1Y/vlUwirfZ68msBRzbfUd919+cBu1Gy8s=;\n b=kA0DAAgBnJ2qBz9kQNkByyZiAGnFAk+jrbUrX8v69NsO/nyH/ePXsmPvf0C8YPco8iOLr9wUc\n okBMwQAAQgAHRYhBKtZ0SvWnjKKtVUoHJydqgc/ZEDZBQJpxQJPAAoJEJydqgc/ZEDZzwIH/Ru0\n 2AF+/teHTL5QT0y+e7OM1JSXSgtJVvs45IucCcMez844DMUE9ky8I1vCvwsQFDJzoEvJai4ZaNN\n hvGzJQNe1KukBiOsNsjbkIHfNsH6NHyvL3MqtCP382ebyjrHKTadS9CP2+J2s1XycVtqpHkNTDF\n U33nQqpPdfiTOqHP26e7n5XjTXbA/PKkFArdlvxlIQbdlcs9kRZMsaEZIFyDcW9+P6lGncdtGLn\n XLlwF3Z+xXq+FCkwyQCIIN9eQTAk9RzS7Nvcljc8WKpaQCTijjvpiuTT7ltOCY9dcH5HY/2aMPz\n Rqp32kpQbzXRh/x/Va3tW9q5BUMOXqTSdtRD4G4=",
        "X-Developer-Key": "i=jack@suse.cz; a=openpgp;\n fpr=93C6099A142276A28BBE35D815BC833443038D8C",
        "Content-Transfer-Encoding": "8bit",
        "X-Spamd-Result": "default: False [-1.51 / 50.00];\n\tBAYES_HAM(-3.00)[100.00%];\n\tSUSPICIOUS_RECIPS(1.50)[];\n\tMID_CONTAINS_FROM(1.00)[];\n\tNEURAL_HAM_LONG(-1.00)[-1.000];\n\tR_MISSING_CHARSET(0.50)[];\n\tNEURAL_HAM_SHORT(-0.20)[-1.000];\n\tR_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tMIME_GOOD(-0.10)[text/plain];\n\tMX_GOOD(-0.01)[];\n\tDBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns];\n\tRCVD_COUNT_THREE(0.00)[3];\n\tDKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tRBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n\tFUZZY_RATELIMITED(0.00)[rspamd.com];\n\tMIME_TRACE(0.00)[0:+];\n\tARC_NA(0.00)[];\n\tRCPT_COUNT_TWELVE(0.00)[16];\n\tRCVD_TLS_LAST(0.00)[];\n\tTO_MATCH_ENVRCPT_ALL(0.00)[];\n\tFROM_HAS_DN(0.00)[];\n\tRCVD_VIA_SMTP_AUTH(0.00)[];\n\tTAGGED_RCPT(0.00)[];\n\tRECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received];\n\tSPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n\tR_RATELIMIT(0.00)[to(RLpnp1psq57oqao6ocwdpbxen9),to_ip_from(RLhafujjw6m7bafrsz8p45s31g)];\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\tDKIM_TRACE(0.00)[suse.cz:+];\n\tFROM_EQ_ENVFROM(0.00)[];\n\tTO_DN_SOME(0.00)[];\n\tFREEMAIL_ENVRCPT(0.00)[gmail.com]",
        "X-Rspamd-Action": "no action",
        "X-Spam-Score": "-1.51",
        "X-Spam-Level": "",
        "X-Rspamd-Server": "rspamd1.dmz-prg2.suse.org",
        "X-Rspamd-Queue-Id": "9BBCD5BDC2",
        "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/ext2/ext2.h  |  1 +\n fs/ext2/file.c  |  6 ++++--\n fs/ext2/inode.c | 16 +++++++++-------\n fs/ext2/super.c |  1 +\n 4 files changed, 15 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h\nindex 5e0c6c5fcb6c..3eb1f342645c 100644\n--- a/fs/ext2/ext2.h\n+++ b/fs/ext2/ext2.h\n@@ -676,6 +676,7 @@ struct ext2_inode_info {\n #ifdef CONFIG_QUOTA\n \tstruct dquot __rcu *i_dquot[MAXQUOTAS];\n #endif\n+\tstruct mapping_metadata_bhs i_metadata_bhs;\n };\n \n /*\ndiff --git a/fs/ext2/file.c b/fs/ext2/file.c\nindex ebe356a38b18..d9b1eb34694a 100644\n--- a/fs/ext2/file.c\n+++ b/fs/ext2/file.c\n@@ -156,9 +156,11 @@ static int ext2_release_file (struct inode * inode, struct file * filp)\n int ext2_fsync(struct file *file, loff_t start, loff_t end, int datasync)\n {\n \tint ret;\n-\tstruct super_block *sb = file->f_mapping->host->i_sb;\n+\tstruct inode *inode = file->f_mapping->host;\n+\tstruct super_block *sb = inode->i_sb;\n \n-\tret = generic_buffers_fsync(file, start, end, datasync);\n+\tret = mmb_fsync(file, &EXT2_I(inode)->i_metadata_bhs,\n+\t\t\tstart, end, datasync);\n \tif (ret == -EIO)\n \t\t/* We don't really know where the IO error happened... */\n \t\text2_error(sb, __func__,\ndiff --git a/fs/ext2/inode.c b/fs/ext2/inode.c\nindex fb91c61aa6d6..fa33a6e79b93 100644\n--- a/fs/ext2/inode.c\n+++ b/fs/ext2/inode.c\n@@ -95,9 +95,9 @@ void ext2_evict_inode(struct inode * inode)\n \t\t\text2_truncate_blocks(inode, 0);\n \t\text2_xattr_delete_inode(inode);\n \t} else {\n-\t\tsync_mapping_buffers(&inode->i_data);\n+\t\tmmb_sync(&EXT2_I(inode)->i_metadata_bhs);\n \t}\n-\tinvalidate_inode_buffers(inode);\n+\tmmb_invalidate(&EXT2_I(inode)->i_metadata_bhs);\n \tclear_inode(inode);\n \n \text2_discard_reservation(inode);\n@@ -527,7 +527,7 @@ static int ext2_alloc_branch(struct inode *inode,\n \t\t}\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, &EXT2_I(inode)->i_metadata_bhs);\n \t\t/* We used to sync bh here if IS_SYNC(inode).\n \t\t * But we now rely upon generic_write_sync()\n \t\t * and b_inode_buffers.  But not for directories.\n@@ -598,7 +598,7 @@ static void ext2_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, &EXT2_I(inode)->i_metadata_bhs);\n \n \tinode_set_ctime_current(inode);\n \tmark_inode_dirty(inode);\n@@ -1211,7 +1211,8 @@ static void __ext2_truncate_blocks(struct inode *inode, loff_t offset)\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      &EXT2_I(inode)->i_metadata_bhs);\n \t\text2_free_branches(inode, &nr, &nr+1, (chain+n-1) - partial);\n \t}\n \t/* Clear the ends of indirect blocks on the shared branch */\n@@ -1220,7 +1221,8 @@ static void __ext2_truncate_blocks(struct inode *inode, loff_t offset)\n \t\t\t\t   partial->p + 1,\n \t\t\t\t   (__le32*)partial->bh->b_data+addr_per_block,\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      &EXT2_I(inode)->i_metadata_bhs);\n \t\tbrelse (partial->bh);\n \t\tpartial--;\n \t}\n@@ -1303,7 +1305,7 @@ static int ext2_setsize(struct inode *inode, loff_t newsize)\n \n \tinode_set_mtime_to_ts(inode, inode_set_ctime_current(inode));\n \tif (inode_needs_sync(inode)) {\n-\t\tsync_mapping_buffers(inode->i_mapping);\n+\t\tmmb_sync(&EXT2_I(inode)->i_metadata_bhs);\n \t\tsync_inode_metadata(inode, 1);\n \t} else {\n \t\tmark_inode_dirty(inode);\ndiff --git a/fs/ext2/super.c b/fs/ext2/super.c\nindex 603f2641fe10..4118a3a1f620 100644\n--- a/fs/ext2/super.c\n+++ b/fs/ext2/super.c\n@@ -215,6 +215,7 @@ static struct inode *ext2_alloc_inode(struct super_block *sb)\n #ifdef CONFIG_QUOTA\n \tmemset(&ei->i_dquot, 0, sizeof(ei->i_dquot));\n #endif\n+\tmmb_init(&ei->i_metadata_bhs, &ei->vfs_inode.i_data);\n \n \treturn &ei->vfs_inode;\n }\n",
    "prefixes": [
        "34/42"
    ]
}