Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2230329/?format=api
{ "id": 2230329, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230329/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747214274.4107228.2148742246580255983.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": "<177747214274.4107228.2148742246580255983.stgit@frogsfrogsfrogs>", "date": "2026-04-29T14:51:51", "name": "[2/5] libext2fs: only flush affected blocks in unix_write_byte", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "7b06461c88eaaaa0bf4ac2814e114c77da4b9f45", "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/177747214274.4107228.2148742246580255983.stgit@frogsfrogsfrogs/mbox/", "series": [ { "id": 502086, "url": "http://patchwork.ozlabs.org/api/1.1/series/502086/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502086", "date": "2026-04-29T14:51:35", "name": "[1/5] libext2fs: invalidate cached blocks when freeing them", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502086/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2230329/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2230329/checks/", "tags": {}, "headers": { "Return-Path": "\n <SRS0=93iZ=C4=vger.kernel.org=linux-ext4+bounces-16186-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=eKNf+hrD;\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=93iz=c4=vger.kernel.org=linux-ext4+bounces-16186-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c15:e001:75::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=eKNf+hrD;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16186-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=\"eKNf+hrD\"", "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 4g5LCv06SDz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:03:39 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5LCt6l4jz4wLX\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:03:38 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g5LCt6cxDz4wSX; Thu, 30 Apr 2026 01:03:38 +1000 (AEST)", "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::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 4g5LCn425Nz4wLX\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 01:03:33 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id A10C1301A082\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 14:51:53 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id E4B115733E;\n\tWed, 29 Apr 2026 14:51:51 +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 A7E232727FD;\n\tWed, 29 Apr 2026 14:51:51 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 8433EC19425;\n\tWed, 29 Apr 2026 14:51:51 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777475018; cv=pass;\n\tb=VfdrI5o8ffMRTDuf4IKC9eXpAhYb1e/hE3381v2q/0GqRC+vJiSjmumttkWL3fuviL7QtNWXgSNrk4iuj+2TH2nAVdd2VoEhHAIombBC8pNDGQlHBoPEONhBTV1kmnwCKT4WwVlpoMTTEN16iwB9B1xzfzSo9OEeMPm3kO7LMKJq7abw+OTUn3OpLlgh0sLJkq/Aqrhcr1y7E1e9aAdn+82tXF7WWEmewk2D6+14KEodTSSwnsDKJBXnYgA3F6G7yJgh3+RIjP1tm3fVtkUPs6CmWw6+MdEBOArXJh+vFV8CPBzhAUAgSivsedJwRt97odRAR1g2fon0y26iE/ZlSQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777474311; cv=none;\n b=KuwH10LFMeu8HMnBe6Y/8MzJgiWbqfWOsgna1L8xJcfAhOxH6GDlvxrrYe5j2IJPGskA0iUEjcaI31TKfBQDnduSU20t+QdyiExMNRncfOx2z1K/PLp5m5HsGpJsj6gNbnHAEeNk6lWePP+lAIYGGm5j0BoBdzrvqg9uYB+hLhQ=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777475018; c=relaxed/relaxed;\n\tbh=Ow5gkw6OjjMCzRtEUTV1BNcAIz1/C23oktjHAyV/drA=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=phLvYbkUNzw1YCvjzpsAvhCxRXQMaZ3EEIPDv9WuCyEjTwHeiFs3iHFC6sd3TefwgMKVu0rvjRXodrmGjPQ+usntQSVcqOJOVUiVX+wJ1c7v4oWgktRhqjYjopZW0JqsfO12OL4k0T1VUzQMB+W5P8hTGGbCPDcoSF95s/4uY4LrH7IANu+aa9MyrQ8iPsqKXP5pydO/96WC4WT55ZjtgQ4lSCG4qRrLQJTsq/RmmNRm8/2iZ04kW9Z2qLrXuRvSeaLm/hnTCIUaQf+8XRkGiyvdMRiKbqjTD+KV4wNIPDJPq4nWG+Aa1nMF6eSIr8NShBNU0XC9aGQs5tb3I9L0Ww==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777474311; c=relaxed/simple;\n\tbh=225/Iat5rTiduRfqL5FozIIZ6Jf/RUepA27A7FwcgQ4=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=hz5DeCc7ujINthrGjfh17ErrWcqHyprXRrujWqz+bbCwHEzF57KQI2uAr0/aJWGHrvttJxwMIfaEYJnyqYCbvi8UyUseKMPlVGrI4QXOGJbRIZIIXDexU/QYYUk6PNV93ahDXKiOx+q1rex2fZoTigNaqST4glnhe6owiZVuAjc=" ], "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=eKNf+hrD; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16186-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=eKNf+hrD; 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=1777474311;\n\tbh=225/Iat5rTiduRfqL5FozIIZ6Jf/RUepA27A7FwcgQ4=;\n\th=Date:Subject:From:To:Cc:In-Reply-To:References:From;\n\tb=eKNf+hrDsp0vYpVvyziEDvLKSnrt1ruUtiR72IgeRsUIRZYt8p/aTtSMKVSTs4yli\n\t B1/R66ODQeO7RteUsLuqRBRJ+vWR32z6VGbJ1xdchvtGUGPrZP8ZU0K73dYBmbgp0r\n\t ov2xX7EWnUcDFTgpnBLgNYYdyCTkmRkame7pFE6bSobOZM8wdChkeLC+OATx+xr5we\n\t TMng0qB9tDZROehSmiLf7zgLBHCDtz21oqnbGRnqc4Fy7lxYEJoXHCu8R97yXMiX/Z\n\t WAFE6XtvUdRfN0scA7rzp1YnE7Qn1KKH+0KvgUlWC90MfaTMlneALINB3Td2T/tKLW\n\t wUfx4vkEg1BQg==", "Date": "Wed, 29 Apr 2026 07:51:51 -0700", "Subject": "[PATCH 2/5] libext2fs: only flush affected blocks in unix_write_byte", "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": "<177747214274.4107228.2148742246580255983.stgit@frogsfrogsfrogs>", "In-Reply-To": "<177747214224.4107228.16300103064218258692.stgit@frogsfrogsfrogs>", "References": "<177747214224.4107228.16300103064218258692.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\nThere's no need to invalidate the entire cache when writing a range of\nbytes to the device. The only ones we need to invalidate are the ones\nthat we're writing separately.\n\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n lib/ext2fs/unix_io.c | 12 ++++++++++--\n 1 file changed, 10 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c\nindex 54bd4b5597ea9e..35c42c35f735a3 100644\n--- a/lib/ext2fs/unix_io.c\n+++ b/lib/ext2fs/unix_io.c\n@@ -1588,6 +1588,7 @@ static errcode_t unix_write_byte(io_channel channel, unsigned long offset,\n {\n \tstruct unix_private_data *data;\n \terrcode_t\tretval = 0;\n+\tunsigned long long bno, nbno;\n \tssize_t\t\tactual;\n \n \tEXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL);\n@@ -1603,10 +1604,17 @@ static errcode_t unix_write_byte(io_channel channel, unsigned long offset,\n \n #ifndef NO_IO_CACHE\n \t/*\n-\t * Flush out the cache completely\n+\t * Flush all the dirty blocks, then invalidate the blocks we're about\n+\t * to write.\n \t */\n-\tif ((retval = flush_cached_blocks(channel, data, FLUSH_INVALIDATE)))\n+\tretval = flush_cached_blocks(channel, data, 0);\n+\tif (retval)\n \t\treturn retval;\n+\n+\tbno = offset / channel->block_size;\n+\tnbno = (offset + size + channel->block_size - 1) / channel->block_size;\n+\n+\tinvalidate_cached_blocks(channel, data, bno, nbno - bno);\n #endif\n \n \tif (lseek(data->dev, offset + data->offset, SEEK_SET) < 0)\n", "prefixes": [ "2/5" ] }