Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2226011/?format=api
{ "id": 2226011, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2226011/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260422021042.4157510-23-yi.zhang@huaweicloud.com/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260422021042.4157510-23-yi.zhang@huaweicloud.com>", "list_archive_url": null, "date": "2026-04-22T02:10:42", "name": "[v3,22/22] ext4: add tracepoints for ordered I/O in the iomap buffered I/O path", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "0ca829d4d63599c024c41283a34ff075bb6d30a4", "submitter": { "id": 85428, "url": "http://patchwork.ozlabs.org/api/1.2/people/85428/?format=api", "name": "Zhang Yi", "email": "yi.zhang@huaweicloud.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260422021042.4157510-23-yi.zhang@huaweicloud.com/mbox/", "series": [ { "id": 500911, "url": "http://patchwork.ozlabs.org/api/1.2/series/500911/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=500911", "date": "2026-04-22T02:10:23", "name": "ext4: use iomap for regular file's buffered I/O path", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/500911/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2226011/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226011/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=fwb0=CV=vger.kernel.org=linux-ext4+bounces-15979-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 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=fwb0=cv=vger.kernel.org=linux-ext4+bounces-15979-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=none (p=none dis=none) header.from=huaweicloud.com", "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-15979-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=45.249.212.51", "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com", "smtp.subspace.kernel.org;\n spf=none smtp.mailfrom=huaweicloud.com" ], "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 4g0jdX0cX9z1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 12:21:20 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g0jdX0B4yz4wL0\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 12:21:20 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g0jdX064vz4wL2; Wed, 22 Apr 2026 12:21:20 +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 4g0jdS0vrLz4wL0\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 22 Apr 2026 12:21:16 +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 C7FAE3086670\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 22 Apr 2026 02:17:54 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F300F3644BE;\n\tWed, 22 Apr 2026 02:17:07 +0000 (UTC)", "from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com\n [45.249.212.51])\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 AC4AD35838A;\n\tWed, 22 Apr 2026 02:17:04 +0000 (UTC)", "from mail.maildlp.com (unknown [172.19.163.198])\n\tby dggsgout11.his.huawei.com (SkyGuard) with ESMTPS id 4g0jWN3CQQzYQtrW;\n\tWed, 22 Apr 2026 10:16:00 +0800 (CST)", "from mail02.huawei.com (unknown [10.116.40.252])\n\tby mail.maildlp.com (Postfix) with ESMTP id A0CE940603;\n\tWed, 22 Apr 2026 10:16:57 +0800 (CST)", "from huaweicloud.com (unknown [10.50.85.155])\n\tby APP3 (Coremail) with SMTP id _Ch0CgB3JL6PL+hpqkgUBQ--.2635S26;\n\tWed, 22 Apr 2026 10:16:57 +0800 (CST)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1776824479; cv=pass;\n\tb=f5jfLY5xO7mhKzcsGd8+YIRbBWPbMwfjF5TKg/Y83IEXkpYwpgloivw4E0kTxuy9X4/urAb6TLg7ZPAggtd50Jz7goYArUi0lzfsSnA+jTx2060ESoTSw1wS2+zEzhqpYhJAx4Su5vG0HVPCVsk7mjL3sfwIthY/OJI9G0uKDrz1yTNYViD2eNfzWBaMB8Sx8SswC5Sc92Hx5CB5kxyS4V9D3bj3txbrnVhFtpCQIHRjL+osV2mSmGmwvHwhJ+DFvgUvVTRKp2Ui0w1wCob078oDX7TxicwsEcqQvpLy2/0csJvgvbqa9qBuCf4mZga/ziV7WkbWU2qS2ujRQ56u1g==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776824227; cv=none;\n b=Ts3OCMYw0i8y7IODhCUdn1UXlgSIA/Lvvad4pC2aCuMqpPB+l7pTDFhXEWE9RZhSgsgrZI6522C2lJwdyfR6ohrJ4puBTi5gwcCeKhrzVDfnR8B7FzhAAdwWSyW/JOBdpUK40H212DEo8llKOgZ7sIAkQyiBChpFlREpdtPxF3c=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1776824479; c=relaxed/relaxed;\n\tbh=BYHDUixBykxR8vOyI8i1rCpVc+5qy1mcxayWUxApgeM=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=HXWUeQi3SfXlttd/L0kytywqquA86oGMGyTbBKuCMPvM1mEsVvj82/pkVMc1QvfplacC7IW4cRoXpTfgUtjnqV5BtIDKDolPfhGtztWrXErHJuuLf0REez0LTjAsheKXuDX470q4es2CtMFfzG9By6bRvgpyUvE+uGgvB98IcNdtV3F2c4zLAvlRYPg5cK4LErEhTb8LQ5E5BVwBkJK93tjHfn7FbfXWruycePK+CjQRmcisLj7410Xh1qToGOTATbyRCsK64RfxU6O+E1Z+EyYIDi8tG+JMrH6UAfItmyGxZPx6dpQs4kOBHix2ArolbljMUzh9QiwrN7yieD72rw==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776824227; c=relaxed/simple;\n\tbh=cD0bCy3g9mJTd0A1fuNVh0uWNy9F36geLGfTMHjUsw0=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=Uf6iYW7O9A8GSDRNQKeE+VI0KQ8KBxcdTKDsFGlWPVjNSwB2sxH6kcNam6sta5uryHt2ZOSI708CV98t6nU7oFL0mxHCC2Ej7AMhxnoEBycl1Y2Fwoh3MMkjgm5Q3RhqV2YmhZPMf+mQ2dFYuQS+MZboPyJ2PsGjoawuJKyQhwM=" ], "ARC-Authentication-Results": [ "i=2; gandalf.ozlabs.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com;\n spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15979-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=huaweicloud.com;\n spf=none smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.51" ], "From": "Zhang Yi <yi.zhang@huaweicloud.com>", "To": "linux-ext4@vger.kernel.org,\n\tlinux-fsdevel@vger.kernel.org", "Cc": "linux-kernel@vger.kernel.org,\n\ttytso@mit.edu,\n\tadilger.kernel@dilger.ca,\n\tlibaokun@linux.alibaba.com,\n\tjack@suse.cz,\n\tojaswin@linux.ibm.com,\n\tritesh.list@gmail.com,\n\tdjwong@kernel.org,\n\thch@infradead.org,\n\tyi.zhang@huawei.com,\n\tyi.zhang@huaweicloud.com,\n\tyizhang089@gmail.com,\n\tyangerkun@huawei.com,\n\tyukuai@fnnas.com", "Subject": "[PATCH v3 22/22] ext4: add tracepoints for ordered I/O in the iomap\n buffered I/O path", "Date": "Wed, 22 Apr 2026 10:10:42 +0800", "Message-ID": "<20260422021042.4157510-23-yi.zhang@huaweicloud.com>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<20260422021042.4157510-1-yi.zhang@huaweicloud.com>", "References": "<20260422021042.4157510-1-yi.zhang@huaweicloud.com>", "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-Transfer-Encoding": "8bit", "X-CM-TRANSID": "_Ch0CgB3JL6PL+hpqkgUBQ--.2635S26", "X-Coremail-Antispam": "1UD129KBjvJXoW3Ww1xury5uFyDuFW7Cw18uFg_yoWxCFyrpF\n\t1DCFyrGw48Zrn09w4xXw4Iqr4YvF4rCa18try3WFyDZ3yxAr92kF47tF90vFy8tr4qkryI\n\tgF4DArWkKw1DXrJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2\n\t9KBjDU0xBIdaVrnRJUUUmS14x267AKxVWrJVCq3wAFc2x0x2IEx4CE42xK8VAvwI8IcIk0\n\trVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2048vs2IY020E87I2jVAFwI0_JF0E3s1l82xGYI\n\tkIc2x26xkF7I0E14v26ryj6s0DM28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2\n\tz4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F\n\t4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq\n\t3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7\n\tIYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4U\n\tM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628vn2\n\tkIc2xKxwCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkE\n\tbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67\n\tAF67kF1VAFwI0_GFv_WrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW5JVW7JwCI\n\t42IY6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F4UJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF\n\t4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBI\n\tdaVFxhVjvjDU0xZFpf9x0JUWMKtUUUUU=", "X-CM-SenderInfo": "d1lo6xhdqjqx5xdzvxpfor3voofrz/", "X-Spam-Status": "No, score=-1.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDMARC_MISSING,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org" }, "content": "From: Zhang Yi <yi.zhang@huawei.com>\n\nTo facilitate the tracing of ordered I/Os in the iomap buffered I/O\npath, add tracepoints to track the ordered I/O flow:\n\n - ext4_iomap_ordered_submit: trace when ordered I/O is being submitted;\n - ext4_iomap_ordered_complete: trace when ordered I/O completes;\n - ext4_iomap_disksize_update: trace when i_disksize is updated, either\n when appending I/O or when an ordered I/O completes;\n - ext4_block_zero_eof - trace zero EOF partial block.\n\nSigned-off-by: Zhang Yi <yi.zhang@huawei.com>\n---\n fs/ext4/inode.c | 4 ++\n fs/ext4/page-io.c | 8 +++\n include/trace/events/ext4.h | 97 +++++++++++++++++++++++++++++++++++++\n 3 files changed, 109 insertions(+)", "diff": "diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c\nindex d983336390c7..ca4284da2a2b 100644\n--- a/fs/ext4/inode.c\n+++ b/fs/ext4/inode.c\n@@ -4377,6 +4377,9 @@ static int ext4_iomap_writeback_submit(struct iomap_writepage_ctx *wpc,\n \t\t\t\t ioend->io_offset + ioend->io_size);\n \n \t\tif (start <= order_lblk && end >= order_lblk + order_len) {\n+\t\t\ttrace_ext4_iomap_ordered_submit(ioend->io_inode,\n+\t\t\t\t\tioend->io_offset, ioend->io_size,\n+\t\t\t\t\torder_lblk, order_len);\n \t\t\tioend->io_bio.bi_end_io = ext4_iomap_end_bio;\n \t\t\tioend->io_private = (void *)EXT4_IOMAP_IOEND_ORDER_IO;\n \t\t\tioend->io_flags |= IOMAP_IOEND_BOUNDARY;\n@@ -4879,6 +4882,7 @@ int ext4_block_zero_eof(struct inode *inode, loff_t from, loff_t end)\n \t\t}\n \t}\n \n+\ttrace_ext4_block_zero_eof(inode, from, length, did_zero, zero_written);\n \treturn 0;\n }\n \ndiff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c\nindex 589c74b9f8a3..979a88c38fff 100644\n--- a/fs/ext4/page-io.c\n+++ b/fs/ext4/page-io.c\n@@ -31,6 +31,8 @@\n #include \"xattr.h\"\n #include \"acl.h\"\n \n+#include <trace/events/ext4.h>\n+\n static struct kmem_cache *io_end_cachep;\n static struct kmem_cache *io_end_vec_cachep;\n \n@@ -673,6 +675,9 @@ static int ext4_iomap_wb_update_disksize(handle_t *handle, struct inode *inode,\n \t * never be exposed.\n \t */\n \tnew_disksize = is_ordered ? i_size : min(end, i_size);\n+\ttrace_ext4_iomap_disksize_update(inode, end, i_size, ei->i_disksize,\n+\t\t\t\t\t new_disksize, is_ordered);\n+\n \tif (new_disksize > ei->i_disksize)\n \t\tei->i_disksize = new_disksize;\n \tup_write(&ei->i_data_sem);\n@@ -782,6 +787,9 @@ void ext4_iomap_end_bio(struct bio *bio)\n \t\t * waiters.\n \t\t */\n \t\tsmp_store_release(&ei->i_ordered_len, 0);\n+\t\ttrace_ext4_iomap_ordered_complete(inode, ioend->io_offset,\n+\t\t\t\tioend->io_size, READ_ONCE(ei->i_ordered_lblk),\n+\t\t\t\tREAD_ONCE(ei->i_ordered_len));\n \t\twake_up_all(&ei->i_ordered_wq);\n \t\tgoto defer;\n \t}\ndiff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h\nindex ebafa06cd191..423aec6d09d1 100644\n--- a/include/trace/events/ext4.h\n+++ b/include/trace/events/ext4.h\n@@ -3141,6 +3141,103 @@ DEFINE_SET_IOMAP_EVENT(ext4_iomap_buffered_write_begin);\n DEFINE_SET_IOMAP_EVENT(ext4_iomap_map_writeback_range);\n DEFINE_SET_IOMAP_EVENT(ext4_iomap_zero_begin);\n \n+/* Ordered I/O tracepoints for iomap buffered I/O path */\n+DECLARE_EVENT_CLASS(ext4_iomap_ordered_io,\n+\tTP_PROTO(struct inode *inode, loff_t io_offset, size_t io_size,\n+\t\t ext4_lblk_t i_ordered_lblk, unsigned int i_ordered_len),\n+\tTP_ARGS(inode, io_offset, io_size, i_ordered_lblk, i_ordered_len),\n+\tTP_STRUCT__entry(\n+\t\t__field(dev_t, dev)\n+\t\t__field(u64, ino)\n+\t\t__field(loff_t, io_offset)\n+\t\t__field(size_t, io_size)\n+\t\t__field(ext4_lblk_t, i_ordered_lblk)\n+\t\t__field(unsigned int, i_ordered_len)\n+\t),\n+\tTP_fast_assign(\n+\t\t__entry->dev = inode->i_sb->s_dev;\n+\t\t__entry->ino = inode->i_ino;\n+\t\t__entry->io_offset = io_offset;\n+\t\t__entry->io_size = io_size;\n+\t\t__entry->i_ordered_lblk = i_ordered_lblk;\n+\t\t__entry->i_ordered_len = i_ordered_len;\n+\t),\n+\tTP_printk(\"dev %d:%d ino %llu io_offset %lld io_size %zu i_ordered_lblk %u i_ordered_len %u\",\n+\t\t MAJOR(__entry->dev), MINOR(__entry->dev),\n+\t\t __entry->ino, __entry->io_offset, __entry->io_size,\n+\t\t __entry->i_ordered_lblk, __entry->i_ordered_len)\n+);\n+\n+DEFINE_EVENT(ext4_iomap_ordered_io, ext4_iomap_ordered_submit,\n+\tTP_PROTO(struct inode *inode, loff_t io_offset, size_t io_size,\n+\t\t ext4_lblk_t i_ordered_lblk, unsigned int i_ordered_len),\n+\tTP_ARGS(inode, io_offset, io_size, i_ordered_lblk, i_ordered_len)\n+);\n+\n+DEFINE_EVENT(ext4_iomap_ordered_io, ext4_iomap_ordered_complete,\n+\tTP_PROTO(struct inode *inode, loff_t io_offset, size_t io_size,\n+\t\t ext4_lblk_t i_ordered_lblk, unsigned int i_ordered_len),\n+\tTP_ARGS(inode, io_offset, io_size, i_ordered_lblk, i_ordered_len)\n+);\n+\n+\n+/* i_disksize update tracepoint */\n+TRACE_EVENT(ext4_iomap_disksize_update,\n+\tTP_PROTO(struct inode *inode, loff_t end, loff_t i_size,\n+\t\t loff_t i_disksize, loff_t new_disksize, bool is_ordered),\n+\tTP_ARGS(inode, end, i_size, i_disksize, new_disksize, is_ordered),\n+\tTP_STRUCT__entry(\n+\t\t__field(dev_t, dev)\n+\t\t__field(u64, ino)\n+\t\t__field(loff_t, end)\n+\t\t__field(loff_t, i_size)\n+\t\t__field(loff_t, i_disksize)\n+\t\t__field(loff_t, new_disksize)\n+\t\t__field(bool, is_ordered)\n+\t),\n+\tTP_fast_assign(\n+\t\t__entry->dev = inode->i_sb->s_dev;\n+\t\t__entry->ino = inode->i_ino;\n+\t\t__entry->end = end;\n+\t\t__entry->i_size = i_size;\n+\t\t__entry->i_disksize = i_disksize;\n+\t\t__entry->new_disksize = new_disksize;\n+\t\t__entry->is_ordered = is_ordered;\n+\t),\n+\tTP_printk(\"dev %d:%d ino %llu end %lld i_size %lld i_disksize %lld new_disksize %lld is_ordered %d\",\n+\t\t MAJOR(__entry->dev), MINOR(__entry->dev),\n+\t\t __entry->ino, __entry->end, __entry->i_size,\n+\t\t __entry->i_disksize, __entry->new_disksize,\n+\t\t __entry->is_ordered)\n+);\n+\n+/* Block zero EOF tracepoint */\n+TRACE_EVENT(ext4_block_zero_eof,\n+\tTP_PROTO(struct inode *inode, loff_t from, loff_t length,\n+\t\t bool did_zero, bool zero_written),\n+\tTP_ARGS(inode, from, length, did_zero, zero_written),\n+\tTP_STRUCT__entry(\n+\t\t__field(dev_t, dev)\n+\t\t__field(u64, ino)\n+\t\t__field(loff_t, from)\n+\t\t__field(loff_t, length)\n+\t\t__field(bool, did_zero)\n+\t\t__field(bool, zero_written)\n+\t),\n+\tTP_fast_assign(\n+\t\t__entry->dev = inode->i_sb->s_dev;\n+\t\t__entry->ino = inode->i_ino;\n+\t\t__entry->from = from;\n+\t\t__entry->length = length;\n+\t\t__entry->did_zero = did_zero;\n+\t\t__entry->zero_written = zero_written;\n+\t),\n+\tTP_printk(\"dev %d:%d ino %llu zero EOF from %lld length %lld did_zero %d zero_written %d\",\n+\t\t MAJOR(__entry->dev), MINOR(__entry->dev),\n+\t\t __entry->ino, __entry->from, __entry->length,\n+\t\t __entry->did_zero, __entry->zero_written)\n+);\n+\n #endif /* _TRACE_EXT4_H */\n \n /* This part must be outside protection */\n", "prefixes": [ "v3", "22/22" ] }