[{"id":3642636,"web_url":"http://patchwork.ozlabs.org/comment/3642636/","msgid":"<4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>","list_archive_url":null,"date":"2026-01-28T10:22:30","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":363,"url":"http://patchwork.ozlabs.org/api/people/363/","name":"Jan Kara","email":"jack@suse.cz"},"content":"On Wed 28-01-26 15:45:15, Gerald Yang wrote:\n> When remounting the filesystem to read only in data=journal mode\n> it may dump the following call trace:\n> \n> [   71.629350] CPU: 0 UID: 0 PID: 177 Comm: kworker/u96:5 Tainted: G            E       6.19.0-rc7 #1 PREEMPT(voluntary)\n> [   71.629352] Tainted: [E]=UNSIGNED_MODULE\n> [   71.629353] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)/LXD, BIOS unknown 2/2/2022\n> [   71.629354] Workqueue: writeback wb_workfn (flush-7:4)\n> [   71.629359] RIP: 0010:ext4_journal_check_start+0x8b/0xd0\n> [   71.629360] Code: 31 ff 45 31 c0 45 31 c9 e9 42 ad c4 00 48 8b 5d f8 b8 fb ff ff ff c9 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9 c3 cc cc cc cc <0f> 0b b8 e2 ff ff ff eb c2 0f 0b eb\n>  a9 44 8b 42 08 68 c7 53 ce b8\n> [   71.629361] RSP: 0018:ffffcf32c0fdf6a8 EFLAGS: 00010202\n> [   71.629364] RAX: ffff8f08c8505000 RBX: ffff8f08c67ee800 RCX: 0000000000000000\n> [   71.629366] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000\n> [   71.629367] RBP: ffffcf32c0fdf6b0 R08: 0000000000000001 R09: 0000000000000000\n> [   71.629368] R10: ffff8f08db18b3a8 R11: 0000000000000000 R12: 0000000000000000\n> [   71.629368] R13: 0000000000000002 R14: 0000000000000a48 R15: ffff8f08c67ee800\n> [   71.629369] FS:  0000000000000000(0000) GS:ffff8f0a7d273000(0000) knlGS:0000000000000000\n> [   71.629370] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n> [   71.629371] CR2: 00007b66825905cc CR3: 000000011053d004 CR4: 0000000000772ef0\n> [   71.629374] PKRU: 55555554\n> [   71.629374] Call Trace:\n> [   71.629378]  <TASK>\n> [   71.629382]  __ext4_journal_start_sb+0x38/0x1c0\n> [   71.629383]  mpage_prepare_extent_to_map+0x4af/0x580\n> [   71.629389]  ? sbitmap_get+0x73/0x180\n> [   71.629399]  ext4_do_writepages+0x3cc/0x10a0\n> [   71.629400]  ? kvm_sched_clock_read+0x11/0x20\n> [   71.629409]  ext4_writepages+0xc8/0x1b0\n> [   71.629410]  ? ext4_writepages+0xc8/0x1b0\n> [   71.629411]  do_writepages+0xc4/0x180\n> [   71.629416]  __writeback_single_inode+0x45/0x350\n> [   71.629419]  ? _raw_spin_unlock+0xe/0x40\n> [   71.629423]  writeback_sb_inodes+0x260/0x5c0\n> [   71.629425]  ? __schedule+0x4d1/0x1870\n> [   71.629429]  __writeback_inodes_wb+0x54/0x100\n> [   71.629431]  ? queue_io+0x82/0x140\n> [   71.629433]  wb_writeback+0x1ab/0x330\n> [   71.629448]  wb_workfn+0x31d/0x410\n> [   71.629450]  process_one_work+0x191/0x3e0\n> [   71.629455]  worker_thread+0x2e3/0x420\n> \n> This issue can be easily reproduced by:\n> mkdir -p mnt\n> dd if=/dev/zero of=ext4disk bs=1G count=2 oflag=direct\n> mkfs.ext4 ext4disk\n> tune2fs -o journal_data ext4disk\n> mount ext4disk mnt\n> fio --name=fiotest --rw=randwrite --bs=4k --runtime=3 --ioengine=libaio --iodepth=128 --numjobs=4 --filename=mnt/fiotest --filesize=1G --group_reporting\n> mount -o remount,ro ext4disk mnt\n> sync\n> \n> In data=journal mode, metadata and data are both written to the journal\n> first, but for the second write, ext4 relies on the writeback thread to\n> flush the data to the real file location.\n> \n> After the filesystem is remounted to read only, writeback thread still\n> writes data to it and causes the issue. Return early to avoid starting\n> a journal transaction on a read only filesystem, once the filesystem\n> becomes writable again, the write thread will continue writing data.\n> \n> Signed-off-by: Gerald Yang <gerald.yang@canonical.com>\n\nThanks for the report and the patch! I can indeed reproduce this warning.\nBut the patch itself is certainly not the right fix for this problem.\next4_remount() must make sure there are no dirty pages on the filesystem\nanymore when remounting filesystem read only and it apparently fails to do\nso. In particular it calls sync_filesystem() which should make sure all\ndata is written. So this bug needs more investigation why there are some\ndirty pages left in the inode in data=journal mode because\next4_writepages() should have written them all...\n\n\t\t\t\t\t\t\t\tHonza\n\n> ---\n>  fs/ext4/inode.c | 11 +++++++++++\n>  1 file changed, 11 insertions(+)\n> \n> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c\n> index 15ba4d42982f..4e3bbf17995e 100644\n> --- a/fs/ext4/inode.c\n> +++ b/fs/ext4/inode.c\n> @@ -2787,6 +2787,17 @@ static int ext4_do_writepages(struct mpage_da_data *mpd)\n>  \tif (unlikely(ret))\n>  \t\tgoto out_writepages;\n>  \n> +\t/*\n> +\t * For data=journal, if the filesystem was remounted read-only,\n> +\t * the writeback thread may still write dirty pages to it.\n> +\t * Return early to avoid starting a journal transaction on a\n> +\t * read-only filesystem.\n> +\t */\n> +\tif (ext4_should_journal_data(inode) && sb_rdonly(inode->i_sb)) {\n> +\t\tret = -EROFS;\n> +\t\tgoto out_writepages;\n> +\t}\n> +\n>  \t/*\n>  \t * If we have inline data and arrive here, it means that\n>  \t * we will soon create the block for the 1st page, so\n> -- \n> 2.43.0\n>","headers":{"Return-Path":"\n <SRS0=eCyW=AB=vger.kernel.org=linux-ext4+bounces-13380-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=H9K1vXbg;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=tNx4IiC2;\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=K0zjKHly;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=9n8zmuTq;\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=ecyw=ab=vger.kernel.org=linux-ext4+bounces-13380-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=H9K1vXbg;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=tNx4IiC2;\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=K0zjKHly;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=9n8zmuTq;\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-13380-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=\"H9K1vXbg\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"tNx4IiC2\";\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"K0zjKHly\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"9n8zmuTq\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=195.135.223.130","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-out1.suse.de;\n\tdkim=pass header.d=suse.cz header.s=susede2_rsa header.b=K0zjKHly;\n\tdkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=9n8zmuTq"],"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 4f1JHn2f05z1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 28 Jan 2026 21:22:45 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4f1JHm6vK8z4w0Q\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 28 Jan 2026 21:22:44 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4f1JHm6rXkz4w9k; Wed, 28 Jan 2026 21:22:44 +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 4f1JHj3k65z4w0Q\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 28 Jan 2026 21:22:41 +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 052393008A4F\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 28 Jan 2026 10:22:40 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 900132DF706;\n\tWed, 28 Jan 2026 10:22:38 +0000 (UTC)","from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130])\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 D5B1D2DA75C\n\tfor <linux-ext4@vger.kernel.org>; Wed, 28 Jan 2026 10:22:36 +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-out1.suse.de (Postfix) with ESMTPS id D76ED33B15;\n\tWed, 28 Jan 2026 10:22:34 +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 C36CB3EA61;\n\tWed, 28 Jan 2026 10:22:34 +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 yU2yL2rjeWlfDgAAD6G6ig\n\t(envelope-from <jack@suse.cz>); Wed, 28 Jan 2026 10:22:34 +0000","by quack3.suse.cz (Postfix, from userid 1000)\n\tid 83E21A09FC; Wed, 28 Jan 2026 11:22:30 +0100 (CET)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1769595764; cv=pass;\n\tb=gjj08BusdXM0JWzWcrC0Iiv5Hz/CrTExe2k2ucSKTWrRs0Aw2FG94pDN0+7OYyN+9PT32SuRBFdpM7QaY0xoh0iw6OwO+B+NoIPf9qvjiPYg51mYyv5oLcOGV7eVPb8WVgC5OoFpgfzUoioEWPrqfgAlUZSWHXk8HC8y+/XM7Wax7LwWFaPwAvZ8oyrk/KNQQLH5XJrHP6WzAbhIqyokCgGClcqnwhCpqNFbdAq4BYUV0hbA0XGcLHtf0JI8AYlS3QM0de7eFjJ+zWDpo3+r4KV8Zlc10hAdFIRBdr5VcfCIbeeRrmY5PS3yjOXsTstz3RZnH4KC0gISh13RAxh4bw==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1769595758; cv=none;\n b=GzR/4HlbZYq0evNOAlDozG0JRhI55940pv6XqqzSUEkr4pd3rd8ji4NwmeojNGh5RkjHGcrq8ll0kJtZtE7bCKCM7HBpPDCzrmMjvDG6cJ2ENEEQ28RuQLPr1x8oOs6WuGMAqfuNFjgC082gSNq1dgrjXDZFY8p15OvzIKdqCu4="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1769595764; c=relaxed/relaxed;\n\tbh=Mv/x+o4pxsH0xcghuEnxyCWO59uC3aK4oOof9k161e4=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=R46+WSFbpZamA6EJmYYSinUg9TXQlUSMhT1xrfB9frvtlzTN3n0tRPU76Hok1guBV1zxtxG6SC9zRXf0QC2W60QtYUjX5EOmuwCcZz3KnUfIi6DLzpfgqJyz7MS/QAq1OH7X+jdvpERk5jfuTLUDNGZeXThynhhBjIqR3n6bHVX7peK2MPNK2u25XlEiRQRZfvXNqT2X9mHbyT+3hM2T7DN0q9+DD71N5fyOMkwxJnZh22rNcJ09WN6WZsqvb2DW1YwwCc39tlbz0Gz2qRV2Zrh1nkoDIuFYLq9JtCxh2SXLl2T2CHab2ptC3/P8L6WyuTXXk3PmWYYD66KVOvFhKw==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1769595758; c=relaxed/simple;\n\tbh=TZJa3nyIyMfD7aDMevZtWMqbxGYcGXKLIJea/frr2GA=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=c4HY6dPWlrsPrM10/Uf/br8nE0wNvF8FcAuIuRU1W/PxWmxr3Kf0goaKPt6t76DeIJRpMzTV3hMxpDT0mI5JAloc260bhahJzkFE56DYlyh//hde3u49nv43Q9LL2SmBuVjc+/UkapP1MmH5ig65Szm0S5q5cxKkTEk++aZZZI0="],"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=H9K1vXbg;\n dkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=tNx4IiC2;\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=K0zjKHly;\n dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=9n8zmuTq; 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-13380-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=H9K1vXbg;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=tNx4IiC2;\n dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=K0zjKHly;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=9n8zmuTq; arc=none smtp.client-ip=195.135.223.130"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n\tt=1769595755;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=Mv/x+o4pxsH0xcghuEnxyCWO59uC3aK4oOof9k161e4=;\n\tb=H9K1vXbgVmPh5w3ag21llUm9Ah2SxojOE9IXXdbY3TFwi7Kv4LEocifANho7budAzhlmGB\n\tc0tQTX8Bh/oKDm2QXAj/U6RYpCU33h4NAM6K+su8v4rr8SSQ1mxIg7n9QugBGi5BU+foII\n\tcDkTJp63nY1yE0D7Etd5pxgXqdOiTM0=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1769595755;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=Mv/x+o4pxsH0xcghuEnxyCWO59uC3aK4oOof9k161e4=;\n\tb=tNx4IiC2cFesWrAymhUC7tZCv3I6DvbOJ8gGNaqBmay/NOzYH4bfM5qaj4BoyiuLnLLljc\n\tCdDvyvbS2rhS8SCg==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n\tt=1769595754;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=Mv/x+o4pxsH0xcghuEnxyCWO59uC3aK4oOof9k161e4=;\n\tb=K0zjKHly4AvvtIdf3dUfFP9nnnfAtIvYau6H7KxwYtnwurAijafP3aHipmFkM+ekgJ5zQV\n\t3WoiYGB8GbQ+iwD0Cy70jFOG9Z1EeerjvgX0LYeGvs8KJqHAWts1m1onEkikgVQjqy33FI\n\tfigzaKuWZpOqAhvpj7yna2kfM2rAlQ0=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1769595754;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=Mv/x+o4pxsH0xcghuEnxyCWO59uC3aK4oOof9k161e4=;\n\tb=9n8zmuTqrv0FH8yIzywqAvgqUS6rIP5rVhod/yNkWY+g52C4/rfy4MSwIUXCqA5Gx9KzPQ\n\t2m2yhKx6MDn7n/Cw=="],"Date":"Wed, 28 Jan 2026 11:22:30 +0100","From":"Jan Kara <jack@suse.cz>","To":"Gerald Yang <gerald.yang@canonical.com>","Cc":"tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz,\n\tlinux-ext4@vger.kernel.org, gerald.yang.tw@gmail.com","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","Message-ID":"<4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>","References":"<20260128074515.2028982-1-gerald.yang@canonical.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-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20260128074515.2028982-1-gerald.yang@canonical.com>","X-Spam-Score":"-2.51","X-Spamd-Result":"default: False [-2.51 / 50.00];\n\tBAYES_HAM(-3.00)[100.00%];\n\tSUSPICIOUS_RECIPS(1.50)[];\n\tNEURAL_HAM_LONG(-1.00)[-1.000];\n\tMID_RHS_NOT_FQDN(0.50)[];\n\tR_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tNEURAL_HAM_SHORT(-0.20)[-1.000];\n\tMIME_GOOD(-0.10)[text/plain];\n\tMX_GOOD(-0.01)[];\n\tRCVD_TLS_LAST(0.00)[];\n\tRCVD_COUNT_THREE(0.00)[3];\n\tFUZZY_RATELIMITED(0.00)[rspamd.com];\n\tDKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tMIME_TRACE(0.00)[0:+];\n\tARC_NA(0.00)[];\n\tTO_MATCH_ENVRCPT_ALL(0.00)[];\n\tFREEMAIL_ENVRCPT(0.00)[gmail.com];\n\tFREEMAIL_CC(0.00)[mit.edu,dilger.ca,suse.cz,vger.kernel.org,gmail.com];\n\tRECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received];\n\tFROM_EQ_ENVFROM(0.00)[];\n\tFROM_HAS_DN(0.00)[];\n\tTO_DN_SOME(0.00)[];\n\tTAGGED_RCPT(0.00)[];\n\tMISSING_XM_UA(0.00)[];\n\tRCVD_VIA_SMTP_AUTH(0.00)[];\n\tDKIM_TRACE(0.00)[suse.cz:+];\n\tRCPT_COUNT_FIVE(0.00)[6]","X-Spam-Level":"","X-Rspamd-Action":"no action","X-Rspamd-Queue-Id":"D76ED33B15","X-Rspamd-Server":"rspamd1.dmz-prg2.suse.org","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"}},{"id":3643154,"web_url":"http://patchwork.ozlabs.org/comment/3643154/","msgid":"<CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>","list_archive_url":null,"date":"2026-01-29T03:31:43","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":77781,"url":"http://patchwork.ozlabs.org/api/people/77781/","name":"Gerald Yang","email":"gerald.yang@canonical.com"},"content":"Thanks Jan for the review, originally this issue was observed during reboot\nbecause the root filesystem is remounted to read only before shutdown to\nmake sure all data is flushed to disk.\nWe don't see any issue on the machine because the data is persisted to\njournal. But I think your suggestion is the correct way to fix it, I\nwill look into\nwhy ext4_writepages doesn't flush data to real file location after calling\nsync_filesystem and re-submit the patch for review, thanks again.\n\n\nOn Wed, Jan 28, 2026 at 6:22 PM Jan Kara <jack@suse.cz> wrote:\n>\n> On Wed 28-01-26 15:45:15, Gerald Yang wrote:\n> > When remounting the filesystem to read only in data=journal mode\n> > it may dump the following call trace:\n> >\n> > [   71.629350] CPU: 0 UID: 0 PID: 177 Comm: kworker/u96:5 Tainted: G            E       6.19.0-rc7 #1 PREEMPT(voluntary)\n> > [   71.629352] Tainted: [E]=UNSIGNED_MODULE\n> > [   71.629353] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)/LXD, BIOS unknown 2/2/2022\n> > [   71.629354] Workqueue: writeback wb_workfn (flush-7:4)\n> > [   71.629359] RIP: 0010:ext4_journal_check_start+0x8b/0xd0\n> > [   71.629360] Code: 31 ff 45 31 c0 45 31 c9 e9 42 ad c4 00 48 8b 5d f8 b8 fb ff ff ff c9 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9 c3 cc cc cc cc <0f> 0b b8 e2 ff ff ff eb c2 0f 0b eb\n> >  a9 44 8b 42 08 68 c7 53 ce b8\n> > [   71.629361] RSP: 0018:ffffcf32c0fdf6a8 EFLAGS: 00010202\n> > [   71.629364] RAX: ffff8f08c8505000 RBX: ffff8f08c67ee800 RCX: 0000000000000000\n> > [   71.629366] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000\n> > [   71.629367] RBP: ffffcf32c0fdf6b0 R08: 0000000000000001 R09: 0000000000000000\n> > [   71.629368] R10: ffff8f08db18b3a8 R11: 0000000000000000 R12: 0000000000000000\n> > [   71.629368] R13: 0000000000000002 R14: 0000000000000a48 R15: ffff8f08c67ee800\n> > [   71.629369] FS:  0000000000000000(0000) GS:ffff8f0a7d273000(0000) knlGS:0000000000000000\n> > [   71.629370] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n> > [   71.629371] CR2: 00007b66825905cc CR3: 000000011053d004 CR4: 0000000000772ef0\n> > [   71.629374] PKRU: 55555554\n> > [   71.629374] Call Trace:\n> > [   71.629378]  <TASK>\n> > [   71.629382]  __ext4_journal_start_sb+0x38/0x1c0\n> > [   71.629383]  mpage_prepare_extent_to_map+0x4af/0x580\n> > [   71.629389]  ? sbitmap_get+0x73/0x180\n> > [   71.629399]  ext4_do_writepages+0x3cc/0x10a0\n> > [   71.629400]  ? kvm_sched_clock_read+0x11/0x20\n> > [   71.629409]  ext4_writepages+0xc8/0x1b0\n> > [   71.629410]  ? ext4_writepages+0xc8/0x1b0\n> > [   71.629411]  do_writepages+0xc4/0x180\n> > [   71.629416]  __writeback_single_inode+0x45/0x350\n> > [   71.629419]  ? _raw_spin_unlock+0xe/0x40\n> > [   71.629423]  writeback_sb_inodes+0x260/0x5c0\n> > [   71.629425]  ? __schedule+0x4d1/0x1870\n> > [   71.629429]  __writeback_inodes_wb+0x54/0x100\n> > [   71.629431]  ? queue_io+0x82/0x140\n> > [   71.629433]  wb_writeback+0x1ab/0x330\n> > [   71.629448]  wb_workfn+0x31d/0x410\n> > [   71.629450]  process_one_work+0x191/0x3e0\n> > [   71.629455]  worker_thread+0x2e3/0x420\n> >\n> > This issue can be easily reproduced by:\n> > mkdir -p mnt\n> > dd if=/dev/zero of=ext4disk bs=1G count=2 oflag=direct\n> > mkfs.ext4 ext4disk\n> > tune2fs -o journal_data ext4disk\n> > mount ext4disk mnt\n> > fio --name=fiotest --rw=randwrite --bs=4k --runtime=3 --ioengine=libaio --iodepth=128 --numjobs=4 --filename=mnt/fiotest --filesize=1G --group_reporting\n> > mount -o remount,ro ext4disk mnt\n> > sync\n> >\n> > In data=journal mode, metadata and data are both written to the journal\n> > first, but for the second write, ext4 relies on the writeback thread to\n> > flush the data to the real file location.\n> >\n> > After the filesystem is remounted to read only, writeback thread still\n> > writes data to it and causes the issue. Return early to avoid starting\n> > a journal transaction on a read only filesystem, once the filesystem\n> > becomes writable again, the write thread will continue writing data.\n> >\n> > Signed-off-by: Gerald Yang <gerald.yang@canonical.com>\n>\n> Thanks for the report and the patch! I can indeed reproduce this warning.\n> But the patch itself is certainly not the right fix for this problem.\n> ext4_remount() must make sure there are no dirty pages on the filesystem\n> anymore when remounting filesystem read only and it apparently fails to do\n> so. In particular it calls sync_filesystem() which should make sure all\n> data is written. So this bug needs more investigation why there are some\n> dirty pages left in the inode in data=journal mode because\n> ext4_writepages() should have written them all...\n>\n>                                                                 Honza\n>\n> > ---\n> >  fs/ext4/inode.c | 11 +++++++++++\n> >  1 file changed, 11 insertions(+)\n> >\n> > diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c\n> > index 15ba4d42982f..4e3bbf17995e 100644\n> > --- a/fs/ext4/inode.c\n> > +++ b/fs/ext4/inode.c\n> > @@ -2787,6 +2787,17 @@ static int ext4_do_writepages(struct mpage_da_data *mpd)\n> >       if (unlikely(ret))\n> >               goto out_writepages;\n> >\n> > +     /*\n> > +      * For data=journal, if the filesystem was remounted read-only,\n> > +      * the writeback thread may still write dirty pages to it.\n> > +      * Return early to avoid starting a journal transaction on a\n> > +      * read-only filesystem.\n> > +      */\n> > +     if (ext4_should_journal_data(inode) && sb_rdonly(inode->i_sb)) {\n> > +             ret = -EROFS;\n> > +             goto out_writepages;\n> > +     }\n> > +\n> >       /*\n> >        * If we have inline data and arrive here, it means that\n> >        * we will soon create the block for the 1st page, so\n> > --\n> > 2.43.0\n> >\n> --\n> Jan Kara <jack@suse.com>\n> SUSE Labs, CR","headers":{"Return-Path":"\n <SRS0=/88D=AC=vger.kernel.org=linux-ext4+bounces-13425-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 (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=Id8elMGE;\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=/88d=ac=vger.kernel.org=linux-ext4+bounces-13425-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:google.com\"","gandalf.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","gandalf.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=Id8elMGE;\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-13425-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com\n header.b=\"Id8elMGE\"","smtp.subspace.kernel.org;\n arc=pass smtp.client-ip=185.125.188.122","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=canonical.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 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 4f1l7m3RdGz1xtL\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 29 Jan 2026 14:32:20 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4f1l7m2FYjz4wDJ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 29 Jan 2026 14:32:20 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4f1l7m21Nwz4w9k; Thu, 29 Jan 2026 14:32:20 +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 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4f1l7g1jkwz4wDJ\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 29 Jan 2026 14:32:15 +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 02C14301369D\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 29 Jan 2026 03:32:12 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 4923535C19C;\n\tThu, 29 Jan 2026 03:32:11 +0000 (UTC)","from smtp-relay-internal-0.canonical.com\n (smtp-relay-internal-0.canonical.com [185.125.188.122])\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 A0C5C35B64A\n\tfor <linux-ext4@vger.kernel.org>; Thu, 29 Jan 2026 03:32:00 +0000 (UTC)","from mail-lf1-f71.google.com (mail-lf1-f71.google.com\n [209.85.167.71])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 613573FA6D\n\tfor <linux-ext4@vger.kernel.org>; Thu, 29 Jan 2026 03:31:57 +0000 (UTC)","by mail-lf1-f71.google.com with SMTP id\n 2adb3069b0e04-59e0c9ac987so294236e87.1\n        for <linux-ext4@vger.kernel.org>;\n Wed, 28 Jan 2026 19:31:57 -0800 (PST)"],"ARC-Seal":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707; t=1769657540; cv=pass;\n\tb=vyaeXovkO+72e5E+uiCWGYTQC5VYBCXfkca696tO8FQ8jli5Ua+wtwLuZY/ecMzpBMps4iViObmAJdxLTZiQq+csts0BqYj2jIl7lJ5/6Bn0RCDR1h3h4ZmMo5U+XDeOuk7pwVvu+UL4mxj9mePsFbFrhWLMnf+XjgNG2v93tORBxtjJdIDCSImk6nbKkwifPHsyx9W8gTVudiipPQVvXsVztw1aXCasbC/zogGWvSd5a+yameqsdeCQcTLG/z/nDBVLpLvRdj/7HNKwWM7F9QIgUNQIYNOZBYGjxVTjDbCi8e8AQQGNIgmbGHq3ybosn13EFsVlgbKowqwWEHBAgA==","i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1769657527; cv=pass;\n b=qSzC/1x+OcFaAGDy1xcET4jOLuG3wv/NFGaxVP1XTlhSFVjLa9KWrXdcwuXmJe2f9ng52a+cQWvUUFmjvNzFCdF6hP+6wtdqFrMS1O9qrUmVpaD9MD9qgbUVYaozNq+pzHZ15RD0u9xgnRUNWbqUHnFEwUQ8ofRJIZVDqO5K3qQ=","i=1; a=rsa-sha256; t=1769657516; cv=none;\n        d=google.com; s=arc-20240605;\n        b=bUdQFOd55VpzqGdrYp0HfVvnqWmPTHb8j9peuc2I3p34vkqx+4+fmaAPxJ4rBAlBJy\n         q6Wf8SRbibN5B4L6XsK35V1AwjFPcm48g/LYTv++iMxJS5lPPB0jAf2y+tCtWfoKt3wW\n         xWJO9tMnmqtIi9NFTB1pSJMsKeL8Gq7l0+Xylsqe0X+LN53DPJxYno90t5aZ9ZXKuCa6\n         iZJJtHb26VJqXHXbIE28DhsM9ovA+MrnqWrAFGQJGQiZ9MQRjXSGJq+i5eKxg+wLRdeA\n         DAGe9PfA8GL7+AsQF63hEPuD54rpNDKCPtpbWCt3oYMC2Qs+/5kYWtiXaYo/2qF3kbOZ\n         7eLA=="],"ARC-Message-Signature":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1769657540; c=relaxed/relaxed;\n\tbh=QK1xHO1Pg/29AuoBU3QEa4tmi+YQ3GS5tQx/F6TzO64=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=Md5KDgkmE5u9PzrvdBSHf6/4eyCa/WCUkL9833H8Dor1664Ndp9HgatdHc321uaG41yxrKSFDJXrMC5N1SEMHD5EQaNfc7WLKFVepxb7Q3lhfvZFDHSZKzMPXamrv6CVot/Q9jAIe6Z0Qnosy97N2P4sOCa1WV7a6HfMDSxZS7rKDz0RqyhROEJMsbfqKQxQoPbrpnZrftZEAo30nIx5/NL/ENIL6xdJ7yfHB5cxIryHZBWUZuPEdgMEvHyl284yUgzQNPt6H+im0R5C5bL+fC3Qm8NXJLl/1U2oB9TgbCjQd8LBP2n7kTgTPkywcufg/gOY7EvLEPF02hwSDlDt8A==","i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1769657527; c=relaxed/simple;\n\tbh=n8GjO5lp9SGF1K2bbz0aCjAo8QnGSnHnGg8TRWSU56I=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=VRRU1FP8gEq93htN3v0h/E4DvuIDDzZy45RwwAGW/YfY+KaoIcR3rTJKzCy8kPp0RAmkeJtAc09P7PVlQveWRyRjfuQXzvqtYlnqV46Kuuufmtv4KcPBpVXObPH65LtdcRq8RZ5V8MoL9G0EbpOHW0gZQtqFn/RUUFCS/XPtr/Q=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version;\n        bh=QK1xHO1Pg/29AuoBU3QEa4tmi+YQ3GS5tQx/F6TzO64=;\n        fh=lzO5NWXL3zyioRmYouqbQ5HMygVBTUpSUy3wjuSoOaY=;\n        b=lvYjLHoJvqRtiNaIlMjCRt1Mw7aHiEe4c4K37/0tDFDg8bB0eMp9jrm3RzQdmjq4Lh\n         5CMZ6cKixQ698HWJFZUWCIcqzDWagRNSph1YJ0nZqfsNiPokRkcx1reQ8NvcImgmhXgy\n         ZU7asd0UcpBvu2S/3SnYApm9fuhgSVsSLvr+yuK6ZtNoNL2f1KLAbfUAe9QkHSqhbhTb\n         eUQfbueWUfnY82uAPjgfp8Rpg3PGeGRZMXQYKrvfHd0rqCpG5QiPLBVPUAUvf5TI+PeJ\n         U//Im4CkUuEPi46AjVue9RuFePPTbjKHLG5U1P4bUeLeDQfnJ/xzGIDptKiGmFDHDgtl\n         BDKg==;\n        darn=vger.kernel.org"],"ARC-Authentication-Results":["i=3; gandalf.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com;\n dkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=Id8elMGE; 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-13425-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com;\n spf=pass smtp.mailfrom=canonical.com;\n dkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com\n header.b=Id8elMGE; arc=pass smtp.client-ip=185.125.188.122","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n\ts=20251003; t=1769657517;\n\tbh=QK1xHO1Pg/29AuoBU3QEa4tmi+YQ3GS5tQx/F6TzO64=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n\tb=Id8elMGE1nb+WQ3X57JcO37VsmqDX6Bk5xk2QyQFdn14psYWUdPPvttZyj+JfaRk+\n\t xivOGfypDDK2r94z1ML4MOT7fjUSpoyd9jjeFPtNPDyDUHmiQwJBJfPS29PcrZ3T0f\n\t hwevWmM1sxA7sW+FJhyQF68iQH3b+cRq3yROYkdWZNBVakFzD/2URH5G8w7YTNODx1\n\t 1eQ0vq+f9MOqjwoOwLW6KYE5WvkxRYK4Lx51tUr5mWOZUDYpDrBKLei5+3Yj/W/Ywa\n\t t0OYpwovAh1bCgds2+9Q0jkwWzND1GexONRY9+g6cUAY9qSBzm1x7+7sdodzFhm3su\n\t 6E/o6R9mjXMGP7ALeppBcPPOqUR9BsjvCQZ+1/K0Lr27qhnCKXGHQDA/9WDRhdOlUI\n\t MeFkuHALbIr7SHyBaI/eh5vFxjNoWKW8WmxatgIiEoxGM8OvpYZoBNbWmUn4OO5i9/\n\t nFV/y/9LQ3+fvpxKSGLqqcUEmOae4hvAESyLMDE4vpaKbuiV+0NFk4mo0nYeCzwR+w\n\t u/ol6bWl0VUQIzrBYNuFYp2oTITf9fCqeUl8lnZ8psWdfrbblwvXcpsYwD3VaSMIg4\n\t A43VsBQiULreHSSY4SCDWccTyUrnk9Pf7GMVQ9M62CLUKSOMw4WvT1ZKTtBjdnRr6v\n\t Bqu0nt6nuhFX9PviUBzH6w+k=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1769657516; x=1770262316;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=QK1xHO1Pg/29AuoBU3QEa4tmi+YQ3GS5tQx/F6TzO64=;\n        b=kVVA2hf4et6Uolu4x6CxF8Gmzcp+vRqfcHr5aNoPkdUa03G2414WfCiG/06XG3Hhtc\n         2k+Yup7A8uZIda0fAOpXIvUPeLUBervERY04XeyPdL5EG+YJmeUMwSfMSCg0qjG3tbUw\n         U0/RQMexMWcjUy2f4fmBnZ/ltd6tDZhGa2b56ZFWBLOLPS0Xdl1xSnfep3D0C5b+PxGE\n         7k8CU6AENuEWhL2U/PpAiLOvldySP3SLlSQ+4Yi4gfnpTNmusX45T3La8cr30A0B6UIl\n         Mk5xg+R9bpXbGsHaR+/wv3O+fxzFeLQL1BxF7cAI/svVucm5boDPxdINP8aEVo527lxz\n         GFPA==","X-Forwarded-Encrypted":"i=1;\n AJvYcCUSyO9HyWA57A6EEGg8O49Pn/i71UFherQG9prV+cPprL5mVVPS4rN9j7im3bHtGbgooiXSo69S6OeD@vger.kernel.org","X-Gm-Message-State":"AOJu0YwGvAeQJWmUvCou4Jun2q3uTIgcXW07YGFqhDA/vCiOM5RvRWrw\n\t/fk0BvL5EeafZFkgtW2QIsK77tIs8eJmp3tEkJGxC0/6u9Cp2Z7826KrhG2kU2dGu1elRKmoHVm\n\tN6xqRv5pfZwd1nsXU/bWOv1hwgtqQyjbe0AVi+9x1/nXMJvh9r+vW4mpmOst9NTuBNcnT9nYugA\n\ttqCAAa3LUvhR5OSZT+yyReA/78BgFwt1ZZN367jq9l4dIsiswRnMsRSnQpoeguygIX","X-Gm-Gg":"AZuq6aJL809OjNfb42tF2rMbSypZC89BukELY0kDJvXbYlwfe/wm/QH+rFKxHwQOtUY\n\tZXYLgGOhna0PLlLKUJnR5juTsn9vsq9uI0GDarYiHmdWIqFSYesMIo4dh4Y58yviBpV6wGHvkSg\n\tDIvtyFZ9f9GeSzwUEc+osIEI2EWsj1xCQL28EbW/Nea+0qmZEYi6jX5ibCeV2rFBy3fLE=","X-Received":["by 2002:a05:6512:12ce:b0:59d:fbe8:ba61 with SMTP id\n 2adb3069b0e04-59e04020f3amr2972929e87.17.1769657515897;\n        Wed, 28 Jan 2026 19:31:55 -0800 (PST)","by 2002:a05:6512:12ce:b0:59d:fbe8:ba61 with SMTP id\n 2adb3069b0e04-59e04020f3amr2972922e87.17.1769657515402; Wed, 28 Jan 2026\n 19:31:55 -0800 (PST)"],"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","References":"<20260128074515.2028982-1-gerald.yang@canonical.com>\n <4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>","In-Reply-To":"<4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>","From":"Gerald Yang <gerald.yang@canonical.com>","Date":"Thu, 29 Jan 2026 11:31:43 +0800","X-Gm-Features":"AZwV_QgiXLCXzLcZroT26SBf46ab125vXIwXq813Kw_HAevw8VhGtbd2D0ZTSh0","Message-ID":"\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","To":"Jan Kara <jack@suse.cz>","Cc":"tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org,\n\tgerald.yang.tw@gmail.com","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","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\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"}},{"id":3643236,"web_url":"http://patchwork.ozlabs.org/comment/3643236/","msgid":"<bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>","list_archive_url":null,"date":"2026-01-29T09:31:30","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":363,"url":"http://patchwork.ozlabs.org/api/people/363/","name":"Jan Kara","email":"jack@suse.cz"},"content":"On Thu 29-01-26 11:31:43, Gerald Yang wrote:\n> Thanks Jan for the review, originally this issue was observed during reboot\n> because the root filesystem is remounted to read only before shutdown to\n> make sure all data is flushed to disk.\n> We don't see any issue on the machine because the data is persisted to\n> journal. But I think your suggestion is the correct way to fix it, I\n> will look into\n> why ext4_writepages doesn't flush data to real file location after calling\n> sync_filesystem and re-submit the patch for review, thanks again.\n\nFWIW yesterday I did some investigation and it is always the tail (last\nwritten) folio that is somehow kept dirty. In particular at the beginning\nfor ext4_do_writepages() we commit the running transaction and the bh\nattached to the folio is just dirty but by the time we get to\next4_bio_write_folio() to write it, the bh attached to the tail folio is\nalready part of the running transaction again and so ext4_bio_write_folio()\nfails to write it. I didn't figure out how the bh gets reattached to the\ntransaction yet. Now I likely won't be able to dig more into this for a few\ndays so I'm just sharing my findings until now.\n\n\t\t\t\t\t\t\t\tHonza\n\n> On Wed, Jan 28, 2026 at 6:22 PM Jan Kara <jack@suse.cz> wrote:\n> >\n> > On Wed 28-01-26 15:45:15, Gerald Yang wrote:\n> > > When remounting the filesystem to read only in data=journal mode\n> > > it may dump the following call trace:\n> > >\n> > > [   71.629350] CPU: 0 UID: 0 PID: 177 Comm: kworker/u96:5 Tainted: G            E       6.19.0-rc7 #1 PREEMPT(voluntary)\n> > > [   71.629352] Tainted: [E]=UNSIGNED_MODULE\n> > > [   71.629353] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)/LXD, BIOS unknown 2/2/2022\n> > > [   71.629354] Workqueue: writeback wb_workfn (flush-7:4)\n> > > [   71.629359] RIP: 0010:ext4_journal_check_start+0x8b/0xd0\n> > > [   71.629360] Code: 31 ff 45 31 c0 45 31 c9 e9 42 ad c4 00 48 8b 5d f8 b8 fb ff ff ff c9 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9 c3 cc cc cc cc <0f> 0b b8 e2 ff ff ff eb c2 0f 0b eb\n> > >  a9 44 8b 42 08 68 c7 53 ce b8\n> > > [   71.629361] RSP: 0018:ffffcf32c0fdf6a8 EFLAGS: 00010202\n> > > [   71.629364] RAX: ffff8f08c8505000 RBX: ffff8f08c67ee800 RCX: 0000000000000000\n> > > [   71.629366] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000\n> > > [   71.629367] RBP: ffffcf32c0fdf6b0 R08: 0000000000000001 R09: 0000000000000000\n> > > [   71.629368] R10: ffff8f08db18b3a8 R11: 0000000000000000 R12: 0000000000000000\n> > > [   71.629368] R13: 0000000000000002 R14: 0000000000000a48 R15: ffff8f08c67ee800\n> > > [   71.629369] FS:  0000000000000000(0000) GS:ffff8f0a7d273000(0000) knlGS:0000000000000000\n> > > [   71.629370] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n> > > [   71.629371] CR2: 00007b66825905cc CR3: 000000011053d004 CR4: 0000000000772ef0\n> > > [   71.629374] PKRU: 55555554\n> > > [   71.629374] Call Trace:\n> > > [   71.629378]  <TASK>\n> > > [   71.629382]  __ext4_journal_start_sb+0x38/0x1c0\n> > > [   71.629383]  mpage_prepare_extent_to_map+0x4af/0x580\n> > > [   71.629389]  ? sbitmap_get+0x73/0x180\n> > > [   71.629399]  ext4_do_writepages+0x3cc/0x10a0\n> > > [   71.629400]  ? kvm_sched_clock_read+0x11/0x20\n> > > [   71.629409]  ext4_writepages+0xc8/0x1b0\n> > > [   71.629410]  ? ext4_writepages+0xc8/0x1b0\n> > > [   71.629411]  do_writepages+0xc4/0x180\n> > > [   71.629416]  __writeback_single_inode+0x45/0x350\n> > > [   71.629419]  ? _raw_spin_unlock+0xe/0x40\n> > > [   71.629423]  writeback_sb_inodes+0x260/0x5c0\n> > > [   71.629425]  ? __schedule+0x4d1/0x1870\n> > > [   71.629429]  __writeback_inodes_wb+0x54/0x100\n> > > [   71.629431]  ? queue_io+0x82/0x140\n> > > [   71.629433]  wb_writeback+0x1ab/0x330\n> > > [   71.629448]  wb_workfn+0x31d/0x410\n> > > [   71.629450]  process_one_work+0x191/0x3e0\n> > > [   71.629455]  worker_thread+0x2e3/0x420\n> > >\n> > > This issue can be easily reproduced by:\n> > > mkdir -p mnt\n> > > dd if=/dev/zero of=ext4disk bs=1G count=2 oflag=direct\n> > > mkfs.ext4 ext4disk\n> > > tune2fs -o journal_data ext4disk\n> > > mount ext4disk mnt\n> > > fio --name=fiotest --rw=randwrite --bs=4k --runtime=3 --ioengine=libaio --iodepth=128 --numjobs=4 --filename=mnt/fiotest --filesize=1G --group_reporting\n> > > mount -o remount,ro ext4disk mnt\n> > > sync\n> > >\n> > > In data=journal mode, metadata and data are both written to the journal\n> > > first, but for the second write, ext4 relies on the writeback thread to\n> > > flush the data to the real file location.\n> > >\n> > > After the filesystem is remounted to read only, writeback thread still\n> > > writes data to it and causes the issue. Return early to avoid starting\n> > > a journal transaction on a read only filesystem, once the filesystem\n> > > becomes writable again, the write thread will continue writing data.\n> > >\n> > > Signed-off-by: Gerald Yang <gerald.yang@canonical.com>\n> >\n> > Thanks for the report and the patch! I can indeed reproduce this warning.\n> > But the patch itself is certainly not the right fix for this problem.\n> > ext4_remount() must make sure there are no dirty pages on the filesystem\n> > anymore when remounting filesystem read only and it apparently fails to do\n> > so. In particular it calls sync_filesystem() which should make sure all\n> > data is written. So this bug needs more investigation why there are some\n> > dirty pages left in the inode in data=journal mode because\n> > ext4_writepages() should have written them all...\n> >\n> >                                                                 Honza\n> >\n> > > ---\n> > >  fs/ext4/inode.c | 11 +++++++++++\n> > >  1 file changed, 11 insertions(+)\n> > >\n> > > diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c\n> > > index 15ba4d42982f..4e3bbf17995e 100644\n> > > --- a/fs/ext4/inode.c\n> > > +++ b/fs/ext4/inode.c\n> > > @@ -2787,6 +2787,17 @@ static int ext4_do_writepages(struct mpage_da_data *mpd)\n> > >       if (unlikely(ret))\n> > >               goto out_writepages;\n> > >\n> > > +     /*\n> > > +      * For data=journal, if the filesystem was remounted read-only,\n> > > +      * the writeback thread may still write dirty pages to it.\n> > > +      * Return early to avoid starting a journal transaction on a\n> > > +      * read-only filesystem.\n> > > +      */\n> > > +     if (ext4_should_journal_data(inode) && sb_rdonly(inode->i_sb)) {\n> > > +             ret = -EROFS;\n> > > +             goto out_writepages;\n> > > +     }\n> > > +\n> > >       /*\n> > >        * If we have inline data and arrive here, it means that\n> > >        * we will soon create the block for the 1st page, so\n> > > --\n> > > 2.43.0\n> > >\n> > --\n> > Jan Kara <jack@suse.com>\n> > SUSE Labs, CR","headers":{"Return-Path":"\n <SRS0=CFy7=AC=vger.kernel.org=linux-ext4+bounces-13426-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=CyQvw0P+;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=XrUenqow;\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=CyQvw0P+;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=XrUenqow;\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=cfy7=ac=vger.kernel.org=linux-ext4+bounces-13426-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=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=CyQvw0P+;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=XrUenqow;\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=CyQvw0P+;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=XrUenqow;\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-13426-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=\"CyQvw0P+\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"XrUenqow\";\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"CyQvw0P+\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"XrUenqow\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=195.135.223.130","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-out1.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 4f1v6n1x7bz1xtb\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 29 Jan 2026 20:32:00 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4f1v6f6YK8z4wBD\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 29 Jan 2026 20:31:54 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4f1v6f6TQyz4wCx; Thu, 29 Jan 2026 20:31:54 +1100 (AEDT)","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 4f1v6b33Dmz4wBD\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 29 Jan 2026 20:31:51 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 7BAF2302A18E\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 29 Jan 2026 09:31:36 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 6BDB637FF67;\n\tThu, 29 Jan 2026 09:31:35 +0000 (UTC)","from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130])\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 6287237FF61\n\tfor <linux-ext4@vger.kernel.org>; Thu, 29 Jan 2026 09:31:33 +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-out1.suse.de (Postfix) with ESMTPS id 6057E34175;\n\tThu, 29 Jan 2026 09:31:31 +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 475FC3EA61;\n\tThu, 29 Jan 2026 09:31:31 +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 xrZkEfMoe2mQJwAAD6G6ig\n\t(envelope-from <jack@suse.cz>); Thu, 29 Jan 2026 09:31:31 +0000","by quack3.suse.cz (Postfix, from userid 1000)\n\tid DB094A084A; Thu, 29 Jan 2026 10:31:30 +0100 (CET)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1769679114; cv=pass;\n\tb=n3+YmL0NZyEfM5Z/D6F/XkKHqL3aeFEhTtfN9hKO1Hb0qy1SK54HQrdX+8D+qzZHBP+M/e16IqbQHc13eAgEjScxO7fK9I7l/YDgK/AG4nljvASd2PA1nRtrw2kA/qg3Y2d45OzOD+vFkpJhpog94eV0qCPW3ARX2sbwv8iorP282l+KKkp65DFismreHccy9O7+uhkDXggefAlAG9VgZno/WzdcgKCtbLYt8VPbNeAKtWk8xgJ5DWt5I1hv/TqP9igfs6Ie/0kyMOUZibfHKn3QAJSYLwPySiNJioHO8q6Yuh6Ja9A2W/koZFWNIISNJFU7GDhYfOX8B3Ki25KUAA==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1769679095; cv=none;\n b=B/T6krLxWlxa2woFjELRVjpF48rmwIxC4lMzdcUsBOLCFUtFt5qtKCq8dW5jYXRbHe81aCM6Fh1Furq0Gw2hIZlZKWysjzMk5+tjcqlDEFhL9ZVs2V1iygu+7jZT05q6qUTBi+EM36uJk2wGaEXdaCenqtk2yKeWK6J0vDa5A9k="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1769679114; c=relaxed/relaxed;\n\tbh=sDheb6o6nimVg7DZzM6FtbiwMvbTBoOljlnWq9sOot4=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=ATcSBG4xqDcEw6Bh+JtpEtu8QImVIbiKOy9KaGMN75FB8pFxCsJdJF6KK4Rf+9ZE6NJA4h6EGTykEpfRb8V98KuqQqR+hzMUgzjsgeX7QDbwYaTEFO6xBZyiejqobZnm3wr7oiU87/V8nBRn0HPPo53ioJOanc6UbpFTIBXrvFqPP07nWVHFbjOE+PvrECcm7PwHrZCha10c4OZKqzMiOA5KM8QlNIB4dCgPYn1rugEAa8SC0f6t/Zv+yoxxnMJesxEezDFIa7skqA5/TE44kvSAQu34rnSwZsYXALBrsviJSsFRcrNeLmEDNYo3OUK+IKAo+PCl8dKCRwK8dnjqGQ==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1769679095; c=relaxed/simple;\n\tbh=Vq5bmpmYeM4b/wU4rp0E/FdHujnX2uBVWmJRMa3PIxQ=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=CqW4n/yXBPSfnr+vhPraRLlMgDIV/8i6E9PM3EGtBMUTUoXl6C4V6uF1yK5U3wfzhBnMaAlY9HGVJDX7buKr1+2he2CJX6xHPmLEnurupE1BqotgQEll0wbCel+t4CsL7pWADX/fmv3KK+xnX1f1HASfK/xuix43JjCLHPlSUUE="],"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=CyQvw0P+;\n dkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=XrUenqow;\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=CyQvw0P+;\n dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=XrUenqow; 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-13426-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=CyQvw0P+;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=XrUenqow;\n dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=CyQvw0P+;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=XrUenqow; arc=none smtp.client-ip=195.135.223.130"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n\tt=1769679091;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=sDheb6o6nimVg7DZzM6FtbiwMvbTBoOljlnWq9sOot4=;\n\tb=CyQvw0P+Ntnla8GaT8NV9oZQx7ZUWwAfMhUze+4dNMtndlsMS4X9msAnn4xroNR6ko7qRE\n\tEpkQUE0EhGJBGPAsvNoxzB1vLexZJhy9XaBNmR7/Z8HG2dwt9ZvB6S6ytZuu/Ju87VGMZh\n\tdToB6DvTdCrF1aubIx1gOCAA/9RU5Tg=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1769679091;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=sDheb6o6nimVg7DZzM6FtbiwMvbTBoOljlnWq9sOot4=;\n\tb=XrUenqowoXuJdcRgwJSozZlhfraz0pqCB9Qc0IUEdkz8ZVb6u2pY8jKJ8bFi5MUswtoex2\n\tzLjnX6+q56gmeUCA==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n\tt=1769679091;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=sDheb6o6nimVg7DZzM6FtbiwMvbTBoOljlnWq9sOot4=;\n\tb=CyQvw0P+Ntnla8GaT8NV9oZQx7ZUWwAfMhUze+4dNMtndlsMS4X9msAnn4xroNR6ko7qRE\n\tEpkQUE0EhGJBGPAsvNoxzB1vLexZJhy9XaBNmR7/Z8HG2dwt9ZvB6S6ytZuu/Ju87VGMZh\n\tdToB6DvTdCrF1aubIx1gOCAA/9RU5Tg=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1769679091;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=sDheb6o6nimVg7DZzM6FtbiwMvbTBoOljlnWq9sOot4=;\n\tb=XrUenqowoXuJdcRgwJSozZlhfraz0pqCB9Qc0IUEdkz8ZVb6u2pY8jKJ8bFi5MUswtoex2\n\tzLjnX6+q56gmeUCA=="],"Date":"Thu, 29 Jan 2026 10:31:30 +0100","From":"Jan Kara <jack@suse.cz>","To":"Gerald Yang <gerald.yang@canonical.com>","Cc":"Jan Kara <jack@suse.cz>, tytso@mit.edu, adilger.kernel@dilger.ca,\n\tlinux-ext4@vger.kernel.org, gerald.yang.tw@gmail.com","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","Message-ID":"<bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>","References":"<20260128074515.2028982-1-gerald.yang@canonical.com>\n <4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.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-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","Content-Transfer-Encoding":"8bit","In-Reply-To":"\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>","X-Spamd-Result":"default: False [-2.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_RHS_NOT_FQDN(0.50)[];\n\tNEURAL_HAM_SHORT(-0.20)[-1.000];\n\tMIME_GOOD(-0.10)[text/plain];\n\tRCVD_VIA_SMTP_AUTH(0.00)[];\n\tARC_NA(0.00)[];\n\tMISSING_XM_UA(0.00)[];\n\tMIME_TRACE(0.00)[0:+];\n\tFUZZY_RATELIMITED(0.00)[rspamd.com];\n\tTO_DN_SOME(0.00)[];\n\tTAGGED_RCPT(0.00)[];\n\tFREEMAIL_ENVRCPT(0.00)[gmail.com];\n\tRCPT_COUNT_FIVE(0.00)[6];\n\tFROM_HAS_DN(0.00)[];\n\tFREEMAIL_CC(0.00)[suse.cz,mit.edu,dilger.ca,vger.kernel.org,gmail.com];\n\tRCVD_COUNT_THREE(0.00)[3];\n\tFROM_EQ_ENVFROM(0.00)[];\n\tRCVD_TLS_LAST(0.00)[];\n\tTO_MATCH_ENVRCPT_ALL(0.00)[];\n\tDKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tDBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.cz:email,imap1.dmz-prg2.suse.org:helo]","X-Spam-Score":"-2.30","X-Spam-Level":"","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"}},{"id":3643824,"web_url":"http://patchwork.ozlabs.org/comment/3643824/","msgid":"<CAMsNC+ve3dRwT1xGWB0pvBJXqBpeksf7PgbEeihcnfs=AmwVRQ@mail.gmail.com>","list_archive_url":null,"date":"2026-01-30T11:38:55","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":77781,"url":"http://patchwork.ozlabs.org/api/people/77781/","name":"Gerald Yang","email":"gerald.yang@canonical.com"},"content":"Thanks for sharing the findings, I'd also like to share some findings:\nI tried to figure out why the buffer is dirty after calling sync_filesystem,\nin mpage_prepare_extent_to_map, first I printed folio_test_dirty(folio):\n\nwhile (index <= end)\n    ...\n    for (i = 0; i < nr_folios; i++) {\n        ...\n        (print if folio is dirty here)\n\nand actually all folios are clean:\nif (!folio_test_dirty(folio) ||\n    ...\n    folio_unlock(folio);\n    continue;       <==== continue here without writing anything\n\nBecause the call trace happens before going into the above while loop:\n\nif (ext4_should_journal_data(mpd->inode)) {\n    handle = ext4_journal_start(mpd->inode, EXT4_HT_WRITE_PAGE,\n\nit checks if the file system is read only and dumps the call trace in\next4_journal_check_start, but it doesn't check if there are any real writes\nthat will happen later in the loop.\n\nTo confirm this, first I added 2 more lines in the reproduce script before\nremounting read only:\nsync      <==== it calls ext4_sync_fs to flush all dirty data same as what's\n                         called during remount read only\necho 1 > /proc/sys/vm/drop_caches       <==== drop clean page cache\nmount -o remount,ro ext4disk mnt\n\nThen I can no longer reproduce the call trace.\n\nAnother way I tried was to add drop_pagecache_sb in __ext4_remount:\n\nif ((bool)(fc->sb_flags & SB_RDONLY) != sb_rdonly(sb)) {\n    ...\n    if (fc->sb_flags & SB_RDONLY) {\n        err = sync_filesystem(sb);\n        if (err < 0)\n            goto restore_opts;\n        (drop page caches for this file system here)\n\nWith this, I can not reproduce the issue too. But I'm not sure if drop clean\npage cache after sync file system is a proper way to fix the issue, those\npage cache might still be read. Any thoughts?\n\n\nOn Thu, Jan 29, 2026 at 5:31 PM Jan Kara <jack@suse.cz> wrote:\n>\n> On Thu 29-01-26 11:31:43, Gerald Yang wrote:\n> > Thanks Jan for the review, originally this issue was observed during reboot\n> > because the root filesystem is remounted to read only before shutdown to\n> > make sure all data is flushed to disk.\n> > We don't see any issue on the machine because the data is persisted to\n> > journal. But I think your suggestion is the correct way to fix it, I\n> > will look into\n> > why ext4_writepages doesn't flush data to real file location after calling\n> > sync_filesystem and re-submit the patch for review, thanks again.\n>\n> FWIW yesterday I did some investigation and it is always the tail (last\n> written) folio that is somehow kept dirty. In particular at the beginning\n> for ext4_do_writepages() we commit the running transaction and the bh\n> attached to the folio is just dirty but by the time we get to\n> ext4_bio_write_folio() to write it, the bh attached to the tail folio is\n> already part of the running transaction again and so ext4_bio_write_folio()\n> fails to write it. I didn't figure out how the bh gets reattached to the\n> transaction yet. Now I likely won't be able to dig more into this for a few\n> days so I'm just sharing my findings until now.\n>\n>                                                                 Honza\n>\n> > On Wed, Jan 28, 2026 at 6:22 PM Jan Kara <jack@suse.cz> wrote:\n> > >\n> > > On Wed 28-01-26 15:45:15, Gerald Yang wrote:\n> > > > When remounting the filesystem to read only in data=journal mode\n> > > > it may dump the following call trace:\n> > > >\n> > > > [   71.629350] CPU: 0 UID: 0 PID: 177 Comm: kworker/u96:5 Tainted: G            E       6.19.0-rc7 #1 PREEMPT(voluntary)\n> > > > [   71.629352] Tainted: [E]=UNSIGNED_MODULE\n> > > > [   71.629353] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)/LXD, BIOS unknown 2/2/2022\n> > > > [   71.629354] Workqueue: writeback wb_workfn (flush-7:4)\n> > > > [   71.629359] RIP: 0010:ext4_journal_check_start+0x8b/0xd0\n> > > > [   71.629360] Code: 31 ff 45 31 c0 45 31 c9 e9 42 ad c4 00 48 8b 5d f8 b8 fb ff ff ff c9 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9 c3 cc cc cc cc <0f> 0b b8 e2 ff ff ff eb c2 0f 0b eb\n> > > >  a9 44 8b 42 08 68 c7 53 ce b8\n> > > > [   71.629361] RSP: 0018:ffffcf32c0fdf6a8 EFLAGS: 00010202\n> > > > [   71.629364] RAX: ffff8f08c8505000 RBX: ffff8f08c67ee800 RCX: 0000000000000000\n> > > > [   71.629366] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000\n> > > > [   71.629367] RBP: ffffcf32c0fdf6b0 R08: 0000000000000001 R09: 0000000000000000\n> > > > [   71.629368] R10: ffff8f08db18b3a8 R11: 0000000000000000 R12: 0000000000000000\n> > > > [   71.629368] R13: 0000000000000002 R14: 0000000000000a48 R15: ffff8f08c67ee800\n> > > > [   71.629369] FS:  0000000000000000(0000) GS:ffff8f0a7d273000(0000) knlGS:0000000000000000\n> > > > [   71.629370] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n> > > > [   71.629371] CR2: 00007b66825905cc CR3: 000000011053d004 CR4: 0000000000772ef0\n> > > > [   71.629374] PKRU: 55555554\n> > > > [   71.629374] Call Trace:\n> > > > [   71.629378]  <TASK>\n> > > > [   71.629382]  __ext4_journal_start_sb+0x38/0x1c0\n> > > > [   71.629383]  mpage_prepare_extent_to_map+0x4af/0x580\n> > > > [   71.629389]  ? sbitmap_get+0x73/0x180\n> > > > [   71.629399]  ext4_do_writepages+0x3cc/0x10a0\n> > > > [   71.629400]  ? kvm_sched_clock_read+0x11/0x20\n> > > > [   71.629409]  ext4_writepages+0xc8/0x1b0\n> > > > [   71.629410]  ? ext4_writepages+0xc8/0x1b0\n> > > > [   71.629411]  do_writepages+0xc4/0x180\n> > > > [   71.629416]  __writeback_single_inode+0x45/0x350\n> > > > [   71.629419]  ? _raw_spin_unlock+0xe/0x40\n> > > > [   71.629423]  writeback_sb_inodes+0x260/0x5c0\n> > > > [   71.629425]  ? __schedule+0x4d1/0x1870\n> > > > [   71.629429]  __writeback_inodes_wb+0x54/0x100\n> > > > [   71.629431]  ? queue_io+0x82/0x140\n> > > > [   71.629433]  wb_writeback+0x1ab/0x330\n> > > > [   71.629448]  wb_workfn+0x31d/0x410\n> > > > [   71.629450]  process_one_work+0x191/0x3e0\n> > > > [   71.629455]  worker_thread+0x2e3/0x420\n> > > >\n> > > > This issue can be easily reproduced by:\n> > > > mkdir -p mnt\n> > > > dd if=/dev/zero of=ext4disk bs=1G count=2 oflag=direct\n> > > > mkfs.ext4 ext4disk\n> > > > tune2fs -o journal_data ext4disk\n> > > > mount ext4disk mnt\n> > > > fio --name=fiotest --rw=randwrite --bs=4k --runtime=3 --ioengine=libaio --iodepth=128 --numjobs=4 --filename=mnt/fiotest --filesize=1G --group_reporting\n> > > > mount -o remount,ro ext4disk mnt\n> > > > sync\n> > > >\n> > > > In data=journal mode, metadata and data are both written to the journal\n> > > > first, but for the second write, ext4 relies on the writeback thread to\n> > > > flush the data to the real file location.\n> > > >\n> > > > After the filesystem is remounted to read only, writeback thread still\n> > > > writes data to it and causes the issue. Return early to avoid starting\n> > > > a journal transaction on a read only filesystem, once the filesystem\n> > > > becomes writable again, the write thread will continue writing data.\n> > > >\n> > > > Signed-off-by: Gerald Yang <gerald.yang@canonical.com>\n> > >\n> > > Thanks for the report and the patch! I can indeed reproduce this warning.\n> > > But the patch itself is certainly not the right fix for this problem.\n> > > ext4_remount() must make sure there are no dirty pages on the filesystem\n> > > anymore when remounting filesystem read only and it apparently fails to do\n> > > so. In particular it calls sync_filesystem() which should make sure all\n> > > data is written. So this bug needs more investigation why there are some\n> > > dirty pages left in the inode in data=journal mode because\n> > > ext4_writepages() should have written them all...\n> > >\n> > >                                                                 Honza\n> > >\n> > > > ---\n> > > >  fs/ext4/inode.c | 11 +++++++++++\n> > > >  1 file changed, 11 insertions(+)\n> > > >\n> > > > diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c\n> > > > index 15ba4d42982f..4e3bbf17995e 100644\n> > > > --- a/fs/ext4/inode.c\n> > > > +++ b/fs/ext4/inode.c\n> > > > @@ -2787,6 +2787,17 @@ static int ext4_do_writepages(struct mpage_da_data *mpd)\n> > > >       if (unlikely(ret))\n> > > >               goto out_writepages;\n> > > >\n> > > > +     /*\n> > > > +      * For data=journal, if the filesystem was remounted read-only,\n> > > > +      * the writeback thread may still write dirty pages to it.\n> > > > +      * Return early to avoid starting a journal transaction on a\n> > > > +      * read-only filesystem.\n> > > > +      */\n> > > > +     if (ext4_should_journal_data(inode) && sb_rdonly(inode->i_sb)) {\n> > > > +             ret = -EROFS;\n> > > > +             goto out_writepages;\n> > > > +     }\n> > > > +\n> > > >       /*\n> > > >        * If we have inline data and arrive here, it means that\n> > > >        * we will soon create the block for the 1st page, so\n> > > > --\n> > > > 2.43.0\n> > > >\n> > > --\n> > > Jan Kara <jack@suse.com>\n> > > SUSE Labs, CR\n> --\n> Jan Kara <jack@suse.com>\n> SUSE Labs, CR","headers":{"Return-Path":"\n <SRS0=7G13=AD=vger.kernel.org=linux-ext4+bounces-13439-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 (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=DKP87hE4;\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=7g13=ad=vger.kernel.org=linux-ext4+bounces-13439-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.232.135.74\n arc.chain=\"subspace.kernel.org:google.com\"","gandalf.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","gandalf.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=DKP87hE4;\n\tdkim-atps=neutral","gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-13439-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com\n header.b=\"DKP87hE4\"","smtp.subspace.kernel.org;\n arc=pass smtp.client-ip=185.125.188.123","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=canonical.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 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 4f2YvL2778z1xtd\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 30 Jan 2026 22:39:25 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4f2YvJ3s4Qz4wB9\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 30 Jan 2026 22:39:24 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4f2YvJ3kD7z4wCJ; Fri, 30 Jan 2026 22:39:24 +1100 (AEDT)","from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\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 4f2YvC1xvBz4wB9\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 30 Jan 2026 22:39:19 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 9F55A30058EE\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 30 Jan 2026 11:39:16 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 8019E35DCEC;\n\tFri, 30 Jan 2026 11:39:13 +0000 (UTC)","from smtp-relay-internal-1.canonical.com\n (smtp-relay-internal-1.canonical.com [185.125.188.123])\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 6FA8234BA3A\n\tfor <linux-ext4@vger.kernel.org>; Fri, 30 Jan 2026 11:39:09 +0000 (UTC)","from mail-lf1-f72.google.com (mail-lf1-f72.google.com\n [209.85.167.72])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id A1D0C3F363\n\tfor <linux-ext4@vger.kernel.org>; Fri, 30 Jan 2026 11:39:07 +0000 (UTC)","by mail-lf1-f72.google.com with SMTP id\n 2adb3069b0e04-59b786498b0so1362825e87.3\n        for <linux-ext4@vger.kernel.org>;\n Fri, 30 Jan 2026 03:39:07 -0800 (PST)"],"ARC-Seal":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707; t=1769773164; cv=pass;\n\tb=SDjILbe/y68VHloId8ooh+euAXqUANrpuguEmR5hiV1cCQ4osXtJguaMawfoW++M9XUcfX0scCVgTy7X5pNuMCMRzENwBTd3JDK9WEc4GLQPtnIyZkqle9eGC/mYL9ASkHEY0n0nlmjcDcWXHHfCz/dEu8sfjswLLpDoF4d2SMEIYX1oVA+vG+4egkZscPxLWabqo3qiNHEBgoNrTHGKLqCXeb2YPEFNwTyZi+imcG9EHte15W/z3ubd971TBUA6jc6EqJL0/c+0XsZU7Yb+RP9yF2LnBRWMLdnAafWpW7lawZ/nhJTmM05QscafyuZkvutHqTYYiRbV/liAo9XXIA==","i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1769773153; cv=pass;\n b=J7fXhXZp+WE/iL15EXCC6tK7SdnidDExtFdVSYLQjkecOENwO+IiAIFOh1X3i7oZBVb8JH6+wlhmmE8GB5/8gqoGaKgb6NSs0zCRF5Jqpt25I/jFBOmzB9uWySJilt/AoFOskFDDXOMaVZ6eP7WhzPuGyak9XxjpHe4hgXUKLMo=","i=1; a=rsa-sha256; t=1769773147; cv=none;\n        d=google.com; s=arc-20240605;\n        b=N5egx3qXlo+xTgSdGPMi17XvjI/wFPuda7HvdXx+nYRNUCkyn/EXGwHS/93HUKpSP+\n         l9NGJ9bOBd9ngtE0xoXVBnLMqG7fDbA4YR4gjyzCVH8j8o0j9midwpLciqkisy5K3DNM\n         D6oPdsnDy487AYLI+QenPJjCUEdIUUqAI7yjSGyT1K1pm/CycP4lYYK7siM3AJzPH/Cj\n         tLGzE7+ls/ycmjdikWqfvVF3FQvgJYY4RALK1iSqBbKPppYbFHzT2oE3x4+6wAq46CrD\n         4pnSZ6+gCYw2uenBagPQ38fJ89eAQNM6uEQLH66WGPXh4ktQb2Gf3mmfDBIdLeIeDz/y\n         +pmg=="],"ARC-Message-Signature":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1769773164; c=relaxed/relaxed;\n\tbh=tIM6HekHVbizDpWLVzh0TOuAujWuJlKP0VbNWwnAEtE=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=oTgP6D40l+wvmQdIYs/brDh7Gw56W9ZjzfYtAlag+TefSCNY8BztxkAshI+4gwnV8j9zw/CRXZmZvbb06vIWJEAPC0XAfazWz7e5OYnT4Q0WLMqqtjK01kZG9BnVu/DDnelelHZxhK9xQHuj8/12kkKYS65ZvOC991gyJcQnA9IfQ9vtqdD/F2r0ENL/sb4cAucofvfK+V4oShWhwLVFxYUY2V8KJF/yd/Ra7yBXrS3NbTJiuwagovw0gMh/7poUsY+imPBkdLoPpgqYsJVM3bMZNKYh2H2nnpMHPyjipfpPY6zHq8q8OA2lSNp6a2dimXh+FuymnBX3G7vgYb0ohA==","i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1769773153; c=relaxed/simple;\n\tbh=9tUUo4RtUgVZritVYhQgn/RZrkmrP28pId3YXTu6M7g=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=PNcV4TdqRzNTKZKCuQ3yv9erVTqlcHFNNltBymHuDaGl6hCX7Lv8NCEZ7Il0KRt80TJ28Asl5N0rsM7owQd6cWjwoDpziPPbHRkEJUbxk0j23sLtghkoL7GwrTD+EjLw9hsrbvKuGnCfjcBmWJdfImdw9XA6ESWuI6S0BIOIFYg=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version;\n        bh=tIM6HekHVbizDpWLVzh0TOuAujWuJlKP0VbNWwnAEtE=;\n        fh=3fdPMa4koKMyyZgCNQhTKsV4AkHoeBAz73p97nHl3YM=;\n        b=HVfrv3x8jc3/tmyaptjdzWge2Vw8+cq82tkogdQqW0+W2zjJe+r8bjwKR0N18XjKN2\n         jTiyoM6ndhxWeNFJHyrIjJiqQtQVO27grdjK2rfgGtLBvlt+Zp5fR6/OoevV9+v7pNfI\n         Bg5KVvop2hHGr9VvXTTaJOwM0BbqUkR/kIzGC35VDLL4SD97px/ZERbcF1qDSTpLXi+0\n         /Jzg35oM6yurVw95MixQfgxffHQPJu+I9JbN/7yEarzP8XTd2euCv7/phz0YoJXVXa/R\n         48mLE1X8o7Ld9QLJV9QwHLKr8ks/Ti/Fn66olm7tlJOjo0ZNskY1GUZmyetJcAkZJp0l\n         tklA==;\n        darn=vger.kernel.org"],"ARC-Authentication-Results":["i=3; gandalf.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com;\n dkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=DKP87hE4; dkim-atps=neutral;\n spf=pass (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-13439-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com;\n spf=pass smtp.mailfrom=canonical.com;\n dkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com\n header.b=DKP87hE4; arc=pass smtp.client-ip=185.125.188.123","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n\ts=20251003; t=1769773147;\n\tbh=tIM6HekHVbizDpWLVzh0TOuAujWuJlKP0VbNWwnAEtE=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n\tb=DKP87hE446rFi0efZ7f9bwv6RV2J7yKkFK9MmHP/DJiGYntVT5GDY1Gzx//kGkFPx\n\t PFcM/+xT0y0KmTn2JZwqN/Nk5DoRieNqD0VjWVrGdujOxtIAcJNWr66LI2vKb9RYWF\n\t PKYZn485mkWq8tKMO89DN5WbbXOD4UakjcTGCRymTETc6QxLIFIxghVAWP4/IYQsTK\n\t Tn/wPzL3RdQviQBXnfigpuz7qOe0T/fWreTlDlgBaNIJ+v788BQcsM9fe9+6oqJwCI\n\t OiDGLppQLi+NQ8iIlSG9zLuB3eR3AD1c3czehO9yFfnDts6xd7Xzf41XSz2Xb6fRg0\n\t GPFPAmw3y38E8k26Mlawtx16Op1DbDTplWdyZA4V5XiGNm3cvxB/ETJlmm9UjpusoJ\n\t Oc/cLCO/Tda81Bbsl1PLrht0EFATsgshg5QgvyCPORHA7nSYYjwLcxzEgiw4RDwL8Q\n\t ZKIkO7LYviwoBG+EWlOkfFTKykQJ5LTWf50Si/Ar8+wR4l5WhtQIc77MCIscbAPTJE\n\t yMayccMxzI/cJ/pG5CUIFgzLty8EMhIF/f8G67qSnCLGZM4KHwwLxcjFBT12KZPu+d\n\t k/qSlEaTU9l+iyKRfB2EiO9JRlM8AH0tnRZDUmsMh4jxEzkhbT92j/pmF/VpHwpa3h\n\t lNAZ12RgMAhu5djORsfRSzKo=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1769773147; x=1770377947;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=tIM6HekHVbizDpWLVzh0TOuAujWuJlKP0VbNWwnAEtE=;\n        b=lVzOPZ5OHZ3/RFGIw89T7G3RAesWhXrPspH8M8qsweLvpQ0+Hpx7bwiMnxJCzwTMRL\n         Am0l51VK/wr1MqnDlYvcnzY5oJlfjpoTNoIF7fjmxStdxOGbIWzRXH6EvAhcKvg2lHAb\n         4Z8b4cs7egC0Pn30ZJ0dP1Esh2HeNKZsZzA+z9RxPYZcrlux5cs1ei3SZNzUQWdYleIa\n         yp/nOZB8uxlvE0KVvtUjMoV2Fcre5kUi1JJa3UOmetdPK1KMoPAgUfCsPPH1FGZnL8Wl\n         eSkt+n6/PdVoziEyQV7mB8uHukwGN7lSHo3LWpVI/EVmlnlcT7Uy9VVxv81MvBFTM3ge\n         4sDw==","X-Forwarded-Encrypted":"i=1;\n AJvYcCUzc2ZwSv4+HQpeAVcJERPErjTTsfEMrPeIZteEqNciayE3N3pksdY+NuqAf9Ro2YOPBd9Bqwyk7U8Y@vger.kernel.org","X-Gm-Message-State":"AOJu0Yz6E96lfgaMIsXnZGsrU6Jx8UFmrNa27j8HdQrcQs4Zbf+KRBkg\n\tK7He3TlwN47mFOsdQPtsCDRN4O6GfeH8sEKDewiN1ye0JqgsApYmK+ieLJwIhYWmreY/eb5l+Tb\n\tvBEscVZ2d0cKXRLTkWjBs3kKYUnYVzF+Db9D/IjEKzm/R1RTx1CJTry4BWh251kwiJKnRm3sTit\n\tQa2QfXsyzcKs5yGJ+3RAWNWN+zBTGOzfss2gbGH6Hz2oxt86wbqJq5pg==","X-Gm-Gg":"AZuq6aLF4qMv5DBWslZrbmhfgyQ81oe5rgwbYW6J6/HoQxR3SxX3H7iVcKmJguu1euR\n\tR/atQ7YUDIqRT5hiWrXg1Xs9SzDGMtqPI7BYPJZbl34i3HmdBB1x/SQwTZP4a0W07vUnJPJnd44\n\txjLGphiOnqIGYJ66bsB7twpJOB81yrRiR55Do1loyL+2ur3Vlt1HK9jOalmu3en9Yf5ak=","X-Received":["by 2002:ac2:51c2:0:b0:59b:6dbc:e507 with SMTP id\n 2adb3069b0e04-59e16438a68mr864129e87.47.1769773146797;\n        Fri, 30 Jan 2026 03:39:06 -0800 (PST)","by 2002:ac2:51c2:0:b0:59b:6dbc:e507 with SMTP id\n 2adb3069b0e04-59e16438a68mr864123e87.47.1769773146261; Fri, 30 Jan 2026\n 03:39:06 -0800 (PST)"],"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","References":"<20260128074515.2028982-1-gerald.yang@canonical.com>\n <4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>\n <bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>","In-Reply-To":"<bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>","From":"Gerald Yang <gerald.yang@canonical.com>","Date":"Fri, 30 Jan 2026 19:38:55 +0800","X-Gm-Features":"AZwV_Qh0Kr11VSn_nVMICaIteNKsDUMaj1E7Lu6_E758RDu01GJpglwtzW8ZVXk","Message-ID":"\n <CAMsNC+ve3dRwT1xGWB0pvBJXqBpeksf7PgbEeihcnfs=AmwVRQ@mail.gmail.com>","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","To":"Jan Kara <jack@suse.cz>","Cc":"tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org,\n\tgerald.yang.tw@gmail.com","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","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\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"}},{"id":3645239,"web_url":"http://patchwork.ozlabs.org/comment/3645239/","msgid":"<gluj62pw5pu7ag2juf5ejwsr3ghvckag7wh4zunwyk57slcrmg@42of57gybigz>","list_archive_url":null,"date":"2026-02-03T14:50:43","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":363,"url":"http://patchwork.ozlabs.org/api/people/363/","name":"Jan Kara","email":"jack@suse.cz"},"content":"Hello,\n\nOn Fri 30-01-26 19:38:55, Gerald Yang wrote:\n> Thanks for sharing the findings, I'd also like to share some findings:\n> I tried to figure out why the buffer is dirty after calling sync_filesystem,\n> in mpage_prepare_extent_to_map, first I printed folio_test_dirty(folio):\n> \n> while (index <= end)\n>     ...\n>     for (i = 0; i < nr_folios; i++) {\n>         ...\n>         (print if folio is dirty here)\n> \n> and actually all folios are clean:\n> if (!folio_test_dirty(folio) ||\n>     ...\n>     folio_unlock(folio);\n>     continue;       <==== continue here without writing anything\n> \n> Because the call trace happens before going into the above while loop:\n> \n> if (ext4_should_journal_data(mpd->inode)) {\n>     handle = ext4_journal_start(mpd->inode, EXT4_HT_WRITE_PAGE,\n> \n> it checks if the file system is read only and dumps the call trace in\n> ext4_journal_check_start, but it doesn't check if there are any real writes\n> that will happen later in the loop.\n> \n> To confirm this, first I added 2 more lines in the reproduce script before\n> remounting read only:\n> sync      <==== it calls ext4_sync_fs to flush all dirty data same as what's\n>                          called during remount read only\n> echo 1 > /proc/sys/vm/drop_caches       <==== drop clean page cache\n> mount -o remount,ro ext4disk mnt\n> \n> Then I can no longer reproduce the call trace.\n\nOK, but ext4_do_writepages() has a check at the beginning:\n\n        if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY))\n                goto out_writepages;\n\nSo if there are no dirty pages, mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)\nshould be false and so we shouldn't go further?\n\nIt all looks like some kind of a race because I'm not always able to\nreproduce the problem... I'll try to look more into this.\n\n\t\t\t\t\t\t\t\tHonza","headers":{"Return-Path":"\n <SRS0=z/RX=AH=vger.kernel.org=linux-ext4+bounces-13511-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=tDgRFGqX;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=2Yny2qzQ;\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=tDgRFGqX;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=2Yny2qzQ;\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=z/rx=ah=vger.kernel.org=linux-ext4+bounces-13511-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=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=tDgRFGqX;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=2Yny2qzQ;\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=tDgRFGqX;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=2Yny2qzQ;\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-13511-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=\"tDgRFGqX\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"2Yny2qzQ\";\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"tDgRFGqX\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"2Yny2qzQ\"","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=tDgRFGqX;\n\tdkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=2Yny2qzQ"],"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 4f55yW3wGtz1xpg\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 04 Feb 2026 01:50:59 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4f55yP5CMRz4wCH\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 04 Feb 2026 01:50:53 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4f55yP56zmz4wCQ; Wed, 04 Feb 2026 01:50:53 +1100 (AEDT)","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 4f55yL1Z4cz4wCH\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 04 Feb 2026 01:50:50 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 55E19304D1DD\n\tfor <patchwork-incoming@ozlabs.org>; Tue,  3 Feb 2026 14:50:48 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 4E34A395264;\n\tTue,  3 Feb 2026 14:50:47 +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 9231F1E487\n\tfor <linux-ext4@vger.kernel.org>; Tue,  3 Feb 2026 14:50:45 +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 933DE5BCC6;\n\tTue,  3 Feb 2026 14:50:43 +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 7DD063EA62;\n\tTue,  3 Feb 2026 14:50:43 +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 Vs+4HkMLgmmiDAAAD6G6ig\n\t(envelope-from <jack@suse.cz>); Tue, 03 Feb 2026 14:50:43 +0000","by quack3.suse.cz (Postfix, from userid 1000)\n\tid 347DBA09E1; Tue,  3 Feb 2026 15:50:43 +0100 (CET)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1770130253; cv=pass;\n\tb=NR1cyl625piwjgDZNMj5ZteS58iN8NKfBLFmW+xuG1r8XMQ0a2rSUE78CAzicZJ584pP44jlhwUPiXoisgwzf/u4FP2fhIrmjIZG8Y1xJW8TLvey2yUTyiuOGbnsJUju63Al3qb1ikhIUQbQKypKyC5jqu6sSxy5H/qDMYa2ZcZf5F8q2KWwvj3KysSll2O6sT6iu+DSBHLeHkv0HQm6UIjwblUrEULkgjB4kr6sQA/G/s84ctKhqn+vQChunPD8WbsYNg8Jpv+bv4B7jEMZTJB+zCHL/ysgosLLO2Kov4EN9l1Yk+qGljjfC5OjErrwtS0qB1AhiEWy+9h5kH3RtA==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770130247; cv=none;\n b=oeajLJdOrLpTUTdwzi6LRi8J8j/jLPbJnK77as2CQMxaSsQOQbUXDHNgU+9zBWhJksnFZrPCarcixRqDNyfAa9PiNMDLjy+1CMyPRvrCm//q1MqkFHleiwAi3hba3TMMPe/CZrqtdrj8D0rgw27FzypJnrEg5Y31G7ITPgHf9BY="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1770130253; c=relaxed/relaxed;\n\tbh=ERkrjzuQK7Aa/7UCcxP4OZ4zW+9Awu+eZyIVuFg7Mwc=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=w9RRzmQBloF8UGcUdWEUs09F/iRR1gG3yTMiI0ULECxydBBcaUPPPbRkpOVyXYBPxSuBkptiu49iTAG5UabPqgmDa59BNXE5mhJzt/Ij+/DjPybGaN5G7PcuqcONC1ZjPo/LV9xVbMKirehJbvPfvcaMXx5pnTw63ZzbcAcBh8+pT3vO0f8ewy15DPFT0WHM+T49QZJ0WbVT6vPjBQLfh7Qb3YVH82x99Ow7/44bQ99FuUMGxT8JASF48oaEMZWRdnXtEtPtm+aHxzsn7dLSv5FDJRkDlzdl1rHDF31mupYJ5tosstmiahQgNqh7BWFiWCo89MnrvKRxEjEotNAHKg==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770130247; c=relaxed/simple;\n\tbh=pH7aguUyl752/wAdz0ZJ60xBADwB0yyPS+Lqpl9dO/g=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=cTydoCxmewf20CHfshg2HzMAw6nPYvDj2Fm+pS9H6wlsuQ5QfhJEU5dr22w2DxgVR5jEqfPdKZ3JItbZrriNvW2DuEIichPh/cPfJ0xVwwPENEVvlY/9mFJ3kt9nfHaLUQBKdCqzHZtE/C2kKCP8+tpHPa8Tjlf2jO+Wicca1xw="],"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=tDgRFGqX;\n dkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=2Yny2qzQ;\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=tDgRFGqX;\n dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=2Yny2qzQ; 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-13511-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=tDgRFGqX;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=2Yny2qzQ;\n dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=tDgRFGqX;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=2Yny2qzQ; 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=1770130243;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=ERkrjzuQK7Aa/7UCcxP4OZ4zW+9Awu+eZyIVuFg7Mwc=;\n\tb=tDgRFGqX0S8pyUOfoM2PpFSS98TXM35RwqOSJxlvLvxGxBYqHyYIBt6nENl+ohM+C8gG6K\n\t9LwM0ABDAe2+Qi0crt2g6fyqZGE26w1gZUx8Ry5u3mXxEQafqXT2DjVu7i1HAo3BwGjGwp\n\tp7bumf0bFDxgSxNIJUmYCqVUFxMsodo=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1770130243;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=ERkrjzuQK7Aa/7UCcxP4OZ4zW+9Awu+eZyIVuFg7Mwc=;\n\tb=2Yny2qzQuHXFbqxZYy7cDo8wIRmVHVatiNar7z9erKeMhzE5bWZcxzOvvyhXliAHadMbuG\n\tsufK+tsWlBVhY9DA==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n\tt=1770130243;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=ERkrjzuQK7Aa/7UCcxP4OZ4zW+9Awu+eZyIVuFg7Mwc=;\n\tb=tDgRFGqX0S8pyUOfoM2PpFSS98TXM35RwqOSJxlvLvxGxBYqHyYIBt6nENl+ohM+C8gG6K\n\t9LwM0ABDAe2+Qi0crt2g6fyqZGE26w1gZUx8Ry5u3mXxEQafqXT2DjVu7i1HAo3BwGjGwp\n\tp7bumf0bFDxgSxNIJUmYCqVUFxMsodo=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1770130243;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=ERkrjzuQK7Aa/7UCcxP4OZ4zW+9Awu+eZyIVuFg7Mwc=;\n\tb=2Yny2qzQuHXFbqxZYy7cDo8wIRmVHVatiNar7z9erKeMhzE5bWZcxzOvvyhXliAHadMbuG\n\tsufK+tsWlBVhY9DA=="],"Date":"Tue, 3 Feb 2026 15:50:43 +0100","From":"Jan Kara <jack@suse.cz>","To":"Gerald Yang <gerald.yang@canonical.com>","Cc":"Jan Kara <jack@suse.cz>, tytso@mit.edu, adilger.kernel@dilger.ca,\n\tlinux-ext4@vger.kernel.org, gerald.yang.tw@gmail.com","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","Message-ID":"<gluj62pw5pu7ag2juf5ejwsr3ghvckag7wh4zunwyk57slcrmg@42of57gybigz>","References":"<20260128074515.2028982-1-gerald.yang@canonical.com>\n <4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>\n <bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>\n <CAMsNC+ve3dRwT1xGWB0pvBJXqBpeksf7PgbEeihcnfs=AmwVRQ@mail.gmail.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-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"\n <CAMsNC+ve3dRwT1xGWB0pvBJXqBpeksf7PgbEeihcnfs=AmwVRQ@mail.gmail.com>","X-Spam-Score":"-2.51","X-Spamd-Result":"default: False [-2.51 / 50.00];\n\tBAYES_HAM(-3.00)[100.00%];\n\tSUSPICIOUS_RECIPS(1.50)[];\n\tNEURAL_HAM_LONG(-1.00)[-1.000];\n\tMID_RHS_NOT_FQDN(0.50)[];\n\tR_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tNEURAL_HAM_SHORT(-0.20)[-1.000];\n\tMIME_GOOD(-0.10)[text/plain];\n\tMX_GOOD(-0.01)[];\n\tDKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tRCVD_COUNT_THREE(0.00)[3];\n\tFUZZY_RATELIMITED(0.00)[rspamd.com];\n\tARC_NA(0.00)[];\n\tSPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n\tRBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n\tTO_DN_SOME(0.00)[];\n\tMIME_TRACE(0.00)[0:+];\n\tFREEMAIL_ENVRCPT(0.00)[gmail.com];\n\tTO_MATCH_ENVRCPT_ALL(0.00)[];\n\tRCPT_COUNT_FIVE(0.00)[6];\n\tRECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received];\n\tFROM_EQ_ENVFROM(0.00)[];\n\tFROM_HAS_DN(0.00)[];\n\tRCVD_TLS_LAST(0.00)[];\n\tTAGGED_RCPT(0.00)[];\n\tMISSING_XM_UA(0.00)[];\n\tRCVD_VIA_SMTP_AUTH(0.00)[];\n\tFREEMAIL_CC(0.00)[suse.cz,mit.edu,dilger.ca,vger.kernel.org,gmail.com];\n\tDKIM_TRACE(0.00)[suse.cz:+];\n\tDBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo,suse.com:email]","X-Spam-Level":"","X-Rspamd-Action":"no action","X-Rspamd-Queue-Id":"933DE5BCC6","X-Rspamd-Server":"rspamd1.dmz-prg2.suse.org","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"}},{"id":3646387,"web_url":"http://patchwork.ozlabs.org/comment/3646387/","msgid":"<tmtgzmvkfag4r6lbt4i2ej5ad3bfudezcm35l27ybit25r7l4d@5o2i4cuymh5j>","list_archive_url":null,"date":"2026-02-05T09:25:39","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":363,"url":"http://patchwork.ozlabs.org/api/people/363/","name":"Jan Kara","email":"jack@suse.cz"},"content":"On Tue 03-02-26 15:50:43, Jan Kara wrote:\n> Hello,\n> \n> On Fri 30-01-26 19:38:55, Gerald Yang wrote:\n> > Thanks for sharing the findings, I'd also like to share some findings:\n> > I tried to figure out why the buffer is dirty after calling sync_filesystem,\n> > in mpage_prepare_extent_to_map, first I printed folio_test_dirty(folio):\n> > \n> > while (index <= end)\n> >     ...\n> >     for (i = 0; i < nr_folios; i++) {\n> >         ...\n> >         (print if folio is dirty here)\n> > \n> > and actually all folios are clean:\n> > if (!folio_test_dirty(folio) ||\n> >     ...\n> >     folio_unlock(folio);\n> >     continue;       <==== continue here without writing anything\n> > \n> > Because the call trace happens before going into the above while loop:\n> > \n> > if (ext4_should_journal_data(mpd->inode)) {\n> >     handle = ext4_journal_start(mpd->inode, EXT4_HT_WRITE_PAGE,\n> > \n> > it checks if the file system is read only and dumps the call trace in\n> > ext4_journal_check_start, but it doesn't check if there are any real writes\n> > that will happen later in the loop.\n> > \n> > To confirm this, first I added 2 more lines in the reproduce script before\n> > remounting read only:\n> > sync      <==== it calls ext4_sync_fs to flush all dirty data same as what's\n> >                          called during remount read only\n> > echo 1 > /proc/sys/vm/drop_caches       <==== drop clean page cache\n> > mount -o remount,ro ext4disk mnt\n> > \n> > Then I can no longer reproduce the call trace.\n> \n> OK, but ext4_do_writepages() has a check at the beginning:\n> \n>         if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY))\n>                 goto out_writepages;\n> \n> So if there are no dirty pages, mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)\n> should be false and so we shouldn't go further?\n> \n> It all looks like some kind of a race because I'm not always able to\n> reproduce the problem... I'll try to look more into this.\n\nOK, the race is with checkpointing code writing the buffers while flush\nworker tries to writeback the pages. I've posted a patch which fixes the\nissue for me.\n\n\t\t\t\t\t\t\t\tHonza","headers":{"Return-Path":"\n <SRS0=Mbz0=AJ=vger.kernel.org=linux-ext4+bounces-13541-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=0atXNMF6;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=MF15H2FN;\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=0atXNMF6;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=MF15H2FN;\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=mbz0=aj=vger.kernel.org=linux-ext4+bounces-13541-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c09:e001:a7::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=0atXNMF6;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=MF15H2FN;\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=0atXNMF6;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=MF15H2FN;\n\tdkim-atps=neutral","gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-13541-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=\"0atXNMF6\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"MF15H2FN\";\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"0atXNMF6\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"MF15H2FN\"","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 4f6Bl40rj3z1xts\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 05 Feb 2026 20:29:51 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4f6Bl30VTJz4wC3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 05 Feb 2026 20:29:51 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4f6Bl30CDRz4wDx; Thu, 05 Feb 2026 20:29:51 +1100 (AEDT)","from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4f6Bkz2VLWz4wC3\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 05 Feb 2026 20:29:47 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 31466301510D\n\tfor <patchwork-incoming@ozlabs.org>; Thu,  5 Feb 2026 09:26:49 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 039D63921E0;\n\tThu,  5 Feb 2026 09:25:46 +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 8887E3921D1\n\tfor <linux-ext4@vger.kernel.org>; Thu,  5 Feb 2026 09:25:45 +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 C0D8B5BD9F;\n\tThu,  5 Feb 2026 09:25:43 +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 AE2833EA63;\n\tThu,  5 Feb 2026 09:25:43 +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 N6aCKhdihGlzUQAAD6G6ig\n\t(envelope-from <jack@suse.cz>); Thu, 05 Feb 2026 09:25:43 +0000","by quack3.suse.cz (Postfix, from userid 1000)\n\tid 72928A09D8; Thu,  5 Feb 2026 10:25:39 +0100 (CET)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1770283791; cv=pass;\n\tb=h0o6+1hMnsonSysrderjgKIYKVxg8ZrhS1vy2197RSe/eH3SGBsTpYY+z3KE3cwT1+8uixqlVfVTSXag05RkMiO41kTRvDZLYPDy4EmK3OGmxP/+ExnXB0PNHMrVifCp1z8cQ+75itV6JFs+LGP8bjLKuKsJ+Vy7zGRfQLcys6CWW0Fm0g6tktSwJH0T0CHOr+j8Jn2d4Tjb3akMyLlVQVRpymzpsyiIexkN7jaOHkavaK3UdUase/JiCV0p2RlGm48PPpo+pgfaROy76fO01JHxE61BMhmst9RTNCTwdOhrlUuurC5pT9vhgn9bdKG7FoMnLtfoMAYFCAX2K4c99A==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770283545; cv=none;\n b=V8wS3cPCenWOf6TiJ47I0rX+fAcdnPnR15g+ILTdiQXAloVYUVrbQV+JrXbyafcLlrF99eNM21VrXXM529WSeWrwv3TZUkfCHczvaOUhoqWgdXnvkamS06eXZfgdq6VKreHK4Ob1C3lj3L4i6x1Qo+oq9dBVDeVWNQrkjhmCdxs="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1770283791; c=relaxed/relaxed;\n\tbh=APdaobgvIXoTN9naCopRVTV+3nTDAdXaYQ3C4AfX44w=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=KYAnv2sPMEpX+/hxKQTKOAZ4z7qFupT9t8pJpcT0DsqDa1XLDuHONTsH2ZZ2+lLlotxE7qsEUAdm+rcJqkcHGRtBTU6Y/bGHpxZkK0JAjuZDtgJNHwNIYe2D9i3K/MWE7mFmbq/5Oxemra+PbFnLjifVCTT8Y/LW7NS/TJPilzqYaeHDJLRmRLIrQ+5QYtDwe5OwmQyiDqCRu3iqRMOiJuc63kl05Wwm1Vq/H5UUZ7foMRPOMqsT58PWtmeWIrA6bfm/IT+GIlPc8fmbmySOmllk9GxxCW9GuxMF33C/zuQiaQRHClHCBK5TEhXAGVXBgUA1mQc2iBt0aIm4PSxYOQ==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770283545; c=relaxed/simple;\n\tbh=KTapkWoXB2jtTdohE4dGoz3tDJTQ8fsIDd1XB1/S+0o=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=q28JqoHgzIqJwAiegZTF0QX0c3Jz033lAZad/HE4FVgi8gf7kRGCzxgnKkgtKIwzkghwyQZGsnxsSl1BhJ8iCKBTlTFSDpU+grFAzETaCBoID8jh4b3HoZV2v6ZjbAcSsdmiFIXo/DeTYySwori5SgAratRU9FIn0xS/jmbH6Bo="],"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=0atXNMF6;\n dkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=MF15H2FN;\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=0atXNMF6;\n dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=MF15H2FN; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-13541-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=0atXNMF6;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=MF15H2FN;\n dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=0atXNMF6;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=MF15H2FN; 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=1770283543;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=APdaobgvIXoTN9naCopRVTV+3nTDAdXaYQ3C4AfX44w=;\n\tb=0atXNMF6XUoVmfNVI0MiyzdSla5IHS7YZX9vH6zLPyuMkIgfMhJg3y1+d/P54MuBoxfs1j\n\t+eiivWOL2nm1hi51sbbHffYnyZ9fUvH88dg/yvInQmAkiRwBsXdmcbK+Z6556bUFIBvpQb\n\tq2UoiJipjYmn1ghRNq6pLVNQ/Q+7AN8=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1770283543;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=APdaobgvIXoTN9naCopRVTV+3nTDAdXaYQ3C4AfX44w=;\n\tb=MF15H2FNPPMVYGb/pwnrCwym2mXQ9hTG5tFI6wzPHpR8a+Z8ovXXgqJ0/I9gEaEPU7xdJC\n\t0JXHVFnEESQCa6Dw==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n\tt=1770283543;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=APdaobgvIXoTN9naCopRVTV+3nTDAdXaYQ3C4AfX44w=;\n\tb=0atXNMF6XUoVmfNVI0MiyzdSla5IHS7YZX9vH6zLPyuMkIgfMhJg3y1+d/P54MuBoxfs1j\n\t+eiivWOL2nm1hi51sbbHffYnyZ9fUvH88dg/yvInQmAkiRwBsXdmcbK+Z6556bUFIBvpQb\n\tq2UoiJipjYmn1ghRNq6pLVNQ/Q+7AN8=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1770283543;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=APdaobgvIXoTN9naCopRVTV+3nTDAdXaYQ3C4AfX44w=;\n\tb=MF15H2FNPPMVYGb/pwnrCwym2mXQ9hTG5tFI6wzPHpR8a+Z8ovXXgqJ0/I9gEaEPU7xdJC\n\t0JXHVFnEESQCa6Dw=="],"Date":"Thu, 5 Feb 2026 10:25:39 +0100","From":"Jan Kara <jack@suse.cz>","To":"Gerald Yang <gerald.yang@canonical.com>","Cc":"Jan Kara <jack@suse.cz>, tytso@mit.edu, adilger.kernel@dilger.ca,\n\tlinux-ext4@vger.kernel.org, gerald.yang.tw@gmail.com","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","Message-ID":"<tmtgzmvkfag4r6lbt4i2ej5ad3bfudezcm35l27ybit25r7l4d@5o2i4cuymh5j>","References":"<20260128074515.2028982-1-gerald.yang@canonical.com>\n <4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>\n <bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>\n <CAMsNC+ve3dRwT1xGWB0pvBJXqBpeksf7PgbEeihcnfs=AmwVRQ@mail.gmail.com>\n <gluj62pw5pu7ag2juf5ejwsr3ghvckag7wh4zunwyk57slcrmg@42of57gybigz>","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=us-ascii","Content-Disposition":"inline","In-Reply-To":"<gluj62pw5pu7ag2juf5ejwsr3ghvckag7wh4zunwyk57slcrmg@42of57gybigz>","X-Spam-Score":"-2.30","X-Spamd-Result":"default: False [-2.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_RHS_NOT_FQDN(0.50)[];\n\tNEURAL_HAM_SHORT(-0.20)[-1.000];\n\tMIME_GOOD(-0.10)[text/plain];\n\tDKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tRCVD_COUNT_THREE(0.00)[3];\n\tFUZZY_RATELIMITED(0.00)[rspamd.com];\n\tMIME_TRACE(0.00)[0:+];\n\tARC_NA(0.00)[];\n\tTO_DN_SOME(0.00)[];\n\tRCVD_TLS_LAST(0.00)[];\n\tFREEMAIL_ENVRCPT(0.00)[gmail.com];\n\tRCPT_COUNT_FIVE(0.00)[6];\n\tFROM_EQ_ENVFROM(0.00)[];\n\tFROM_HAS_DN(0.00)[];\n\tTO_MATCH_ENVRCPT_ALL(0.00)[];\n\tTAGGED_RCPT(0.00)[];\n\tMISSING_XM_UA(0.00)[];\n\tRCVD_VIA_SMTP_AUTH(0.00)[];\n\tFREEMAIL_CC(0.00)[suse.cz,mit.edu,dilger.ca,vger.kernel.org,gmail.com];\n\tDBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.com:email]","X-Spam-Level":"","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"}},{"id":3646516,"web_url":"http://patchwork.ozlabs.org/comment/3646516/","msgid":"<CAMsNC+svSX9AiZbs1dd4qigZqBuOjuCHOjpyXzgaO0sNLUHDYA@mail.gmail.com>","list_archive_url":null,"date":"2026-02-05T12:59:13","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":77781,"url":"http://patchwork.ozlabs.org/api/people/77781/","name":"Gerald Yang","email":"gerald.yang@canonical.com"},"content":"Thanks Jan for fixing this issue, I can confirm the patch works for me too.\n\n\nOn Thu, Feb 5, 2026 at 5:25 PM Jan Kara <jack@suse.cz> wrote:\n>\n> On Tue 03-02-26 15:50:43, Jan Kara wrote:\n> > Hello,\n> >\n> > On Fri 30-01-26 19:38:55, Gerald Yang wrote:\n> > > Thanks for sharing the findings, I'd also like to share some findings:\n> > > I tried to figure out why the buffer is dirty after calling sync_filesystem,\n> > > in mpage_prepare_extent_to_map, first I printed folio_test_dirty(folio):\n> > >\n> > > while (index <= end)\n> > >     ...\n> > >     for (i = 0; i < nr_folios; i++) {\n> > >         ...\n> > >         (print if folio is dirty here)\n> > >\n> > > and actually all folios are clean:\n> > > if (!folio_test_dirty(folio) ||\n> > >     ...\n> > >     folio_unlock(folio);\n> > >     continue;       <==== continue here without writing anything\n> > >\n> > > Because the call trace happens before going into the above while loop:\n> > >\n> > > if (ext4_should_journal_data(mpd->inode)) {\n> > >     handle = ext4_journal_start(mpd->inode, EXT4_HT_WRITE_PAGE,\n> > >\n> > > it checks if the file system is read only and dumps the call trace in\n> > > ext4_journal_check_start, but it doesn't check if there are any real writes\n> > > that will happen later in the loop.\n> > >\n> > > To confirm this, first I added 2 more lines in the reproduce script before\n> > > remounting read only:\n> > > sync      <==== it calls ext4_sync_fs to flush all dirty data same as what's\n> > >                          called during remount read only\n> > > echo 1 > /proc/sys/vm/drop_caches       <==== drop clean page cache\n> > > mount -o remount,ro ext4disk mnt\n> > >\n> > > Then I can no longer reproduce the call trace.\n> >\n> > OK, but ext4_do_writepages() has a check at the beginning:\n> >\n> >         if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY))\n> >                 goto out_writepages;\n> >\n> > So if there are no dirty pages, mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)\n> > should be false and so we shouldn't go further?\n> >\n> > It all looks like some kind of a race because I'm not always able to\n> > reproduce the problem... I'll try to look more into this.\n>\n> OK, the race is with checkpointing code writing the buffers while flush\n> worker tries to writeback the pages. I've posted a patch which fixes the\n> issue for me.\n>\n>                                                                 Honza\n> --\n> Jan Kara <jack@suse.com>\n> SUSE Labs, CR","headers":{"Return-Path":"\n <SRS0=JeO5=AJ=vger.kernel.org=linux-ext4+bounces-13545-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 (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=gaG797Sm;\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=jeo5=aj=vger.kernel.org=linux-ext4+bounces-13545-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:google.com\"","gandalf.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","gandalf.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=gaG797Sm;\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-13545-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com\n header.b=\"gaG797Sm\"","smtp.subspace.kernel.org;\n arc=pass smtp.client-ip=185.125.188.122","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=canonical.com"],"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 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 4f6HWH50Vkz1xtH\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 06 Feb 2026 00:04:59 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4f6HWH4qSfz4wGx\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 06 Feb 2026 00:04:59 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4f6HWH4h8zz4wpV; Fri, 06 Feb 2026 00:04:59 +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 4f6HWC5cZnz4wGx\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 06 Feb 2026 00:04:55 +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 ECB4C301BC3F\n\tfor <patchwork-incoming@ozlabs.org>; Thu,  5 Feb 2026 12:59:39 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 189EF3D524B;\n\tThu,  5 Feb 2026 12:59:39 +0000 (UTC)","from smtp-relay-internal-0.canonical.com\n (smtp-relay-internal-0.canonical.com [185.125.188.122])\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 7F0DA3B95F9\n\tfor <linux-ext4@vger.kernel.org>; Thu,  5 Feb 2026 12:59:37 +0000 (UTC)","from mail-oi1-f200.google.com (mail-oi1-f200.google.com\n [209.85.167.200])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id C43593F520\n\tfor <linux-ext4@vger.kernel.org>; Thu,  5 Feb 2026 12:59:29 +0000 (UTC)","by mail-oi1-f200.google.com with SMTP id\n 5614622812f47-45f1665f706so3119886b6e.3\n        for <linux-ext4@vger.kernel.org>;\n Thu, 05 Feb 2026 04:59:29 -0800 (PST)"],"ARC-Seal":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707; t=1770296699; cv=pass;\n\tb=htWJB1YFKw1IPEVL2TiddMw8iffUDOc8cAvvHUl+h3rEKGlBtpfyjIE6N2u5bBodg5C+kQXUaWRv7i04Slw1vpaDwwXVyfTZLo6/obUBwK+Y2qRXUlfmEeibwLF5h7kdG3cNI801MV/9CXzfpr1Q3ueX6HFMakDelH5VLpZUIyxbZBBgVFyzEbtTtzCr0HlW1u3/VJHVbOZ2wcFIqwOh8YLAInBhhdbQPMbOEgPYTgxS/op7c3Qrhc2wwqV1e4z82sePpFf6VPMdDHxNj65D2fwYGJZF1DsoI3yWsV7IDxR2njnolXzOtSjDM/45tPSGKgaSepKmcumugH479900aw==","i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770296378; cv=pass;\n b=fMHjd6K4nRljZlzIAggSnGOl+KOKt5V5wwyM72YpDp8aCOKGQBnUAjbPxeWSM3XK48aiE4F8sHH2X/f3Wn8/3voWEYbyfDe713miZo45mO6FXjeQiUFjXITyPMsudefiA3Sfhaa99OLZZmeEvnHrYxRBP1o0gvRyprZL2FEo6dk=","i=1; a=rsa-sha256; t=1770296368; cv=none;\n        d=google.com; s=arc-20240605;\n        b=GhCFiQa/zETIwTWIibUddF15qWkckU3NUoE4d3hFgk8PrNzCRHBRJ5d4V2ibAZIAGM\n         Xw76gHUvItR34Gol9IblQ/Jq45kGLJJTzlWDu7TH3ccu7p5ah3/fLT0q908aZNh87kz+\n         TEP4BOVZWGqrZWFWQaiuKxMineEl/YB5qpNEXrrpH+/sMz4Qnp+uL8Wc+4eNRHmE9eyJ\n         DIyiYOIVG1NRj6mM2DH0rJgQmxhrXaBOzEsEaw7jmeDYXdlNEzn3HP3uEyJmBGFSnuFk\n         KAjHpk5QDKFJkA9+Z5C9ieLPTG3fwseQqrQrY6hV54xEZe6zfYoE4ikWtdPt4R0JiCaf\n         JSPw=="],"ARC-Message-Signature":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1770296699; c=relaxed/relaxed;\n\tbh=qqKrekzgv2kE0rks6W5HOVCMvB1GxK8/1lFD25PHZRg=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=KjFIdJDD12NVGA0/5xin6FFBmW/nUBhqNTkJhpo1Zqeq+OJNEluRgrkHK1MhHJ1HGWSk9hl1Cu1RPD2ekVV4TrlEb5BL2JazwU1z4o+o6nsxW+Q0Fs2l4ZCfAOlx+03+toqJnr7Cav896hSWwP2xQvUvJ/iokebq5CaLUzd+DrCYktbo+NOAwnjGRM9EE/qT8I6AupJenWHZ1F+pMTR2gYphqi6xq2LB0ku96RJOonsKNWZB4vbiqtWpPVbZw7DRpM8D+xSUgjXBbLZa6nMP0Qjl8OID0dnH2OvQNhTnDOl3r+dlNNvBCcvVDiSmYU/2B4tgYbnAIuNfNqIKx8Dneg==","i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770296378; c=relaxed/simple;\n\tbh=b6ybiLUWQC0U95KN4n2npwQwXvLR6ygB0oFnX8K6/rg=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=LavKfHgpQRP8l5u64tr0+6f0YgPgZjlySg8deovrXwA+1Y1/hlpxKt9uj3tqp+MTv456bY6eednNxaEDwJ3YfQ/SEs+mXVf1DOCkDpFPeRYtA+XvCBacaOLYDz7webqjl2652Aq+gvn6Ysg5CF9fkqQIKUcj5p4dek0OBT4wAdI=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version;\n        bh=qqKrekzgv2kE0rks6W5HOVCMvB1GxK8/1lFD25PHZRg=;\n        fh=yvx/tm7EMdooEqTr9zh8mhbUelW3Bgtdvs5Jh01wKnw=;\n        b=HAV87ksWE4i9Vd+uQkiOj+4GgpCqvjK2SKqXjYJi+teIfaZyWw8ftpWUgSfcqBNxpQ\n         jkD9CYnJC7OP6k5kjTneUCiTqjeO2X61270Pzv9gUeM9sCJB44TAXgNMW9Bgevj+cbr8\n         YhqACAvW0WaOr0bo1qcdSwhWKdpwQwJVLuP+FnvAwO0XZvoGXp4tOjHI1R7pATN9+5yo\n         r2gx1/a9LwX/i5dNhyrMD/ZRaamnEgBHCI+lQrd8kXFUIXreE8a3ZurF1o3nXOePDakD\n         m71CAXgkcdZ8dA/XwD6ec5pyD4dRMKlz1+AOlgX6WVaYyL7SIePBUlSQU1Yjxmz1M/5c\n         i6Hw==;\n        darn=vger.kernel.org"],"ARC-Authentication-Results":["i=3; gandalf.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com;\n dkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=gaG797Sm; 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-13545-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com;\n spf=pass smtp.mailfrom=canonical.com;\n dkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com\n header.b=gaG797Sm; arc=pass smtp.client-ip=185.125.188.122","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n\ts=20251003; t=1770296369;\n\tbh=qqKrekzgv2kE0rks6W5HOVCMvB1GxK8/1lFD25PHZRg=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n\tb=gaG797Smp11FNaqTEnm/KNmfJ+gqelsumX8O2BZS9TQnJFmiukCsemsIStROqSmv3\n\t 25FRasENr/qeeUsoOKNfVB8jSHTCzYQmVH14KeTU2OhK9V7InsqA4xWKylNlEGQcUj\n\t pdbkEQkU9XyyvAtfUMoNXO6DhUdnS0bKhxtlRl6dLbe5ROzKgh6nfLn/Cp0PpyznlN\n\t zPDNLEInABMw5B/o9bWdb1KygdAHdGG8huXLVZHdGP6wOthRH2ejjbRa0tBJy0eQJH\n\t fs0aXejbDWX+T68qhUuKM49yzuVwDrFIkPZqCSHjAVbejqZajvTsP4i3sRmT8A3Jn5\n\t UR7naE/El41ZV8b6ZSwG/l9THQnZfFC+kPuXr2RrOyYDp2+6maEyPBOoDTYrFXL0Ay\n\t HVM69Oje4+TMAcP7Kn90uw5vp9JzJB3IAlM5GKBOXFvZXciaTqgSw+R37w8EolD/3a\n\t MRqXjzVyaQnnkIVNYLENZx06PJOiT4wC1Ruv5zXHK9pMmxz9OiSfaW/eOt4qbnEvmX\n\t 6yZcrnwOrvZlN+xt6Lz14PF9yKdbNSdW3cSmY1YHjrcAm2MDxhBHGBt55drGFMtcwR\n\t 9lFseUu57Q+RmXlkX901b396bp8jcKc3IkWBIFj1QrETGBH9kIQcl9RE9B0r7Uaj2N\n\t QOHptEVst5eJRB/mkj7+JnYs=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1770296368; x=1770901168;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=qqKrekzgv2kE0rks6W5HOVCMvB1GxK8/1lFD25PHZRg=;\n        b=fyjoulMurNIPlRMEugaQiVddLs9mwWzz7LlQuvM06jQl+3ryXIdfMcP0P492pNh/Tb\n         k/NumBONR5a++268+PN6Jg4Mx2A8rT1SvTV6ZSMek6UMajAhO6aC4lEF5BuGQMFHSL0w\n         9adxAYq4e707ISrAiwagXGPhuQESISJak6ajHTgD6HYZwyc4J45zNyBUDy2xT6e5PSuQ\n         nVMYtrg/A0+VKphjMhd9LtGTrHX/PoIiOtFsXPc5RXVinDi9pvWru2rh8z0NgnQiGm11\n         W+yKNeFvTTFzhNeTsYz4E1OU2DGA8eMB2s9kX0+DkrJYTMQWvpmdCQoPOndCt9/Grg4e\n         sDMA==","X-Forwarded-Encrypted":"i=1;\n AJvYcCWhI2dT9i9z7GToiDDXjn+gI4aCJ6uSORgTDHsRnlaN1XHKpqlFUvHnXSQAn7qm7TkMPcA+RU4ncHyh@vger.kernel.org","X-Gm-Message-State":"AOJu0YwwPjcmibwfl/R21SboVSlETnX+GeJY9/7n3xYggsKa4FSEAjvD\n\t0rsUCCciGcvSk6KXvy4mIzHje6vEJU/XLS+Vm0SirL/VGfMWMPcHqZWep23w3ZLeBXG0U886zuu\n\tRj5S/MXseV8kiTC76tDZXQUwsl2M1+XWF71LenOCjXOjkpjYBzmmnG6zzz2Hn0xwmnoRyH+DACy\n\tWAPZwMjUUp1C2N0+74edUCNRUEHzKhG1ciMSZcy6HXBx7O8L2gV2qdIA==","X-Gm-Gg":"AZuq6aKqvH7BdOSiY1S7zkZ/YFj/ttSMMR/DC4JwdrS0FcR2h3GHD+ikePetgGuO5Or\n\t2szycnMCP5X0+EgsexcEIscBib1120YkazQnS1OrqjJuJkSKQRCH/sBHOyF2H9Sq1TKxpZsxTRx\n\tIW7VadpPcY9GkNb163W2rpIBt2SrxZhFmoMH8VwhUhekbuZa22IOwTbD7CsOraecCGBi0=","X-Received":["by 2002:a05:6808:15a0:b0:450:794a:6cee with SMTP id\n 5614622812f47-462d5907893mr3661109b6e.21.1770296368645;\n        Thu, 05 Feb 2026 04:59:28 -0800 (PST)","by 2002:a05:6808:15a0:b0:450:794a:6cee with SMTP id\n 5614622812f47-462d5907893mr3661099b6e.21.1770296368340; Thu, 05 Feb 2026\n 04:59:28 -0800 (PST)"],"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","References":"<20260128074515.2028982-1-gerald.yang@canonical.com>\n <4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>\n <bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>\n <CAMsNC+ve3dRwT1xGWB0pvBJXqBpeksf7PgbEeihcnfs=AmwVRQ@mail.gmail.com>\n <gluj62pw5pu7ag2juf5ejwsr3ghvckag7wh4zunwyk57slcrmg@42of57gybigz>\n <tmtgzmvkfag4r6lbt4i2ej5ad3bfudezcm35l27ybit25r7l4d@5o2i4cuymh5j>","In-Reply-To":"<tmtgzmvkfag4r6lbt4i2ej5ad3bfudezcm35l27ybit25r7l4d@5o2i4cuymh5j>","From":"Gerald Yang <gerald.yang@canonical.com>","Date":"Thu, 5 Feb 2026 20:59:13 +0800","X-Gm-Features":"AZwV_QhwvKyPhKC_AULj0yACRazOcdsNLyJoWYEw-m1ch3bTmpOh67ChjUEbJo4","Message-ID":"\n <CAMsNC+svSX9AiZbs1dd4qigZqBuOjuCHOjpyXzgaO0sNLUHDYA@mail.gmail.com>","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","To":"Jan Kara <jack@suse.cz>","Cc":"tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org,\n\tgerald.yang.tw@gmail.com","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","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\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"}},{"id":3669420,"web_url":"http://patchwork.ozlabs.org/comment/3669420/","msgid":"<CAMsNC+vQceRaw9DkbQFo1p2piwcwDbTgohqt=Gtqj27n42kLTQ@mail.gmail.com>","list_archive_url":null,"date":"2026-03-26T01:50:39","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":77781,"url":"http://patchwork.ozlabs.org/api/people/77781/","name":"Gerald Yang","email":"gerald.yang@canonical.com"},"content":"Hi Jan,\n\nI'd like to ask when this will land in upstream kernel? Thanks.\n\nOn Thu, Feb 5, 2026 at 8:59 PM Gerald Yang <gerald.yang@canonical.com> wrote:\n>\n> Thanks Jan for fixing this issue, I can confirm the patch works for me too.\n>\n>\n> On Thu, Feb 5, 2026 at 5:25 PM Jan Kara <jack@suse.cz> wrote:\n> >\n> > On Tue 03-02-26 15:50:43, Jan Kara wrote:\n> > > Hello,\n> > >\n> > > On Fri 30-01-26 19:38:55, Gerald Yang wrote:\n> > > > Thanks for sharing the findings, I'd also like to share some findings:\n> > > > I tried to figure out why the buffer is dirty after calling sync_filesystem,\n> > > > in mpage_prepare_extent_to_map, first I printed folio_test_dirty(folio):\n> > > >\n> > > > while (index <= end)\n> > > >     ...\n> > > >     for (i = 0; i < nr_folios; i++) {\n> > > >         ...\n> > > >         (print if folio is dirty here)\n> > > >\n> > > > and actually all folios are clean:\n> > > > if (!folio_test_dirty(folio) ||\n> > > >     ...\n> > > >     folio_unlock(folio);\n> > > >     continue;       <==== continue here without writing anything\n> > > >\n> > > > Because the call trace happens before going into the above while loop:\n> > > >\n> > > > if (ext4_should_journal_data(mpd->inode)) {\n> > > >     handle = ext4_journal_start(mpd->inode, EXT4_HT_WRITE_PAGE,\n> > > >\n> > > > it checks if the file system is read only and dumps the call trace in\n> > > > ext4_journal_check_start, but it doesn't check if there are any real writes\n> > > > that will happen later in the loop.\n> > > >\n> > > > To confirm this, first I added 2 more lines in the reproduce script before\n> > > > remounting read only:\n> > > > sync      <==== it calls ext4_sync_fs to flush all dirty data same as what's\n> > > >                          called during remount read only\n> > > > echo 1 > /proc/sys/vm/drop_caches       <==== drop clean page cache\n> > > > mount -o remount,ro ext4disk mnt\n> > > >\n> > > > Then I can no longer reproduce the call trace.\n> > >\n> > > OK, but ext4_do_writepages() has a check at the beginning:\n> > >\n> > >         if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY))\n> > >                 goto out_writepages;\n> > >\n> > > So if there are no dirty pages, mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)\n> > > should be false and so we shouldn't go further?\n> > >\n> > > It all looks like some kind of a race because I'm not always able to\n> > > reproduce the problem... I'll try to look more into this.\n> >\n> > OK, the race is with checkpointing code writing the buffers while flush\n> > worker tries to writeback the pages. I've posted a patch which fixes the\n> > issue for me.\n> >\n> >                                                                 Honza\n> > --\n> > Jan Kara <jack@suse.com>\n> > SUSE Labs, CR","headers":{"Return-Path":"\n <SRS0=Iv3Y=B2=vger.kernel.org=linux-ext4+bounces-15384-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 (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=ZeOYKHlR;\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=iv3y=b2=vger.kernel.org=linux-ext4+bounces-15384-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.105.105.114\n arc.chain=\"subspace.kernel.org:google.com\"","gandalf.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","gandalf.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=ZeOYKHlR;\n\tdkim-atps=neutral","gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15384-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com\n header.b=\"ZeOYKHlR\"","smtp.subspace.kernel.org;\n arc=pass smtp.client-ip=185.125.188.123","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=canonical.com"],"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 4fh6P30mJ2z1y1x\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 12:57:58 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fh6P20WqPz4wSG\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 12:57:58 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4fh6P20Rxrz4wM6; Thu, 26 Mar 2026 12:57:58 +1100 (AEDT)","from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\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 4fh6Nv2X3yz4wSG\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 26 Mar 2026 12:57:51 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 7BA31308C165\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 26 Mar 2026 01:51:05 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C52C934F275;\n\tThu, 26 Mar 2026 01:51:02 +0000 (UTC)","from smtp-relay-internal-1.canonical.com\n (smtp-relay-internal-1.canonical.com [185.125.188.123])\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 7405734D901\n\tfor <linux-ext4@vger.kernel.org>; Thu, 26 Mar 2026 01:50:59 +0000 (UTC)","from mail-lf1-f71.google.com (mail-lf1-f71.google.com\n [209.85.167.71])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 239523F0B1\n\tfor <linux-ext4@vger.kernel.org>; Thu, 26 Mar 2026 01:50:52 +0000 (UTC)","by mail-lf1-f71.google.com with SMTP id\n 2adb3069b0e04-5a151d46c5dso529295e87.1\n        for <linux-ext4@vger.kernel.org>;\n Wed, 25 Mar 2026 18:50:52 -0700 (PDT)"],"ARC-Seal":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774490278; cv=pass;\n\tb=HXrs4OFrELILITKF/TgzQp4+7UEDSjLyra9ohD92ueY005i090JDXCm8jH4tRBmkCd0LCIXkqK/yWB2l7oQlACp3x6zNcKM/YQyFdTWDcudPEcikTlZ6MNrdUn5Muwhevt5YpkHIne1YpK5s5WwBUkwQxM9zpWvOmeblyNLU5DHBMGGcUyLLDTLZZdq9kVz+2Le3mXhJ9gfXAVuiLWJEqVUjeLj90ghG/CA+izgqUvifJ8IyeKDJ5fJpQIkxfs3+OBtqiFG7ZqjHL6vISY1jVAXRo345750DfTlNFNHGx83EyazsIPsnp+U1LjrGEeAkaCYCiMijayQelvMTsIGTpQ==","i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774489862; cv=pass;\n b=YwJeK/oxLd+OAtqyQRJQCKXfG7Uf5XmxZ4vENQDe+frPqb4nQ3GipaEtCzbfiRJVhOXu+tJss+QbOxAw8svNoz2wPnZTK1S33HGK6IwBEYw4aXoFgtHBnaTz2S1LmOpoHeyXUDBJvZycCw7MY4qHSPJbld4ZI0RiiHiysNKEg0c=","i=1; a=rsa-sha256; t=1774489851; cv=none;\n        d=google.com; s=arc-20240605;\n        b=U6jqj5BeFuYYyHR8ley9ALxCjRmW2OX2dinsHUyA+h2PcG3tBNsE0L/tCkjHM1K0h6\n         GAB0RtRZ+a2bq3xkwJUp7Jy0cMinAJFRr8VrJgN6chhAS8Ui0UgvWFecvhnPwJ2TeFRA\n         pC6a6w5JefgIxsB9TUTengm+vagOy39RPOJ1Et2LGrxmZ9ZXzfd/myoXSukq58OUEYGC\n         azOswkvTqdKNPNZJjdoa3srv6nLMiaCXbdOGlfblZI5vjddTbASqdsum54QAqtxQ2DvL\n         VKMb2O8c8c5/tUrc5Y1y7dwn9JIX5C49DiR/84iR8T282Us2D65y1KllMulTbDc0JAJ3\n         eToA=="],"ARC-Message-Signature":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774490278; c=relaxed/relaxed;\n\tbh=5LiknU9YZubs1t4YbhjYt2VxOXp5xnY1wLJwJ/9hS5A=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=ga4kHjV+O1aHXtRWKdnroqAxIdqxv/MxpbOjLA03fIjRHbmmvsSDwrQKlu8VdPPrlvenQZw9ODrpj6ew82/VWDb/7xJYipX7Dp2+fWDf+9aoTIFgHJn2IHXfoaitQXatLFACwegAHnZzJcsepZgEqfcmNyWNyDK1GB+k1qK+DZwLk9N4kpGbofuGDpA0+Abv+R6nJSXKtMl7iWSG2tVQ4/6gnuIt5EitJg3ny5+4htMbbxAOdu7ulNj9WQuIHSFdy5ySw3ZOniuB3+G3ldeYgr4Pc9an8ExWd1tAfLo78x5nrY4DIi7/IH8itk3AtV7m4oNkXdmbdaYs4JXz3eeHHA==","i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774489862; c=relaxed/simple;\n\tbh=fL/SfWbL5buhc1ifo/6Ht3jXukidfMIMD1CqdQvUJuk=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=jHZNXfvm4hGjwAxAUqygDawKpe5dRJ7cTRbo7kDUfbnV60HuWQnr804wGStk/2zlZHAx0A1tv0G6xN3cyH6/PEuAbdlzytmIUyc4D0MEW7kA9CkwUcbYCOG/YzYHCKunzrJZ7kCJLdYX3IG2PoUqZ0TH5BIvggCdCRyAIkNJ6jY=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version;\n        bh=5LiknU9YZubs1t4YbhjYt2VxOXp5xnY1wLJwJ/9hS5A=;\n        fh=s41yDohBktKk+AXZEYu0zD7c9ki+C2i1cqjJ++d2mNg=;\n        b=WoL+zt/sMpn6o1fsHsEWW8MHSCMRNnz44IV43pRrO53sTSainXRf2obNyQDCekkU0N\n         3Qzr8uQQF1wg7mOh5786KAJWYqOPFZQPgvP+v+6n6q3SRqGzXz22j+KZ/dtBpXcvFYtF\n         eBHShazU/cyzORN5rsObhJT6hGbpFJZYItWwz9PK9xEM/Q8nDLCRBWEQtb+XcB5kk4+V\n         Vkof428GUVR+SCg9LLZGVuW/2f0ibouRadffdOQGFeE7jW4dbJja62T10am/eH/UWfkk\n         QrlQ+Xa3kyqxHAn/qW9FEBI1s6RNEzc5oFUfKqKH1Fb1GB0b0JCCBlOIkKX990cd+8E3\n         eX/A==;\n        darn=vger.kernel.org"],"ARC-Authentication-Results":["i=3; gandalf.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com;\n dkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=ZeOYKHlR; dkim-atps=neutral;\n spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15384-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com;\n spf=pass smtp.mailfrom=canonical.com;\n dkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com\n header.b=ZeOYKHlR; arc=pass smtp.client-ip=185.125.188.123","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n\ts=20251003; t=1774489852;\n\tbh=5LiknU9YZubs1t4YbhjYt2VxOXp5xnY1wLJwJ/9hS5A=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n\tb=ZeOYKHlRMWj8hYgFxnn7ZSGPcHvnQfu5OuG6n2RH9+SIWhGIOLr/lDFl84TBXxOrx\n\t ZW25rBAlvtzZ8WwpQmpQxHhhd3PvY7ZRHlqt5ly0YQZ8M+EYrI9M0Odna3DtiNj/g6\n\t xESBD5oS0a6h82BiKYqhHZ4ZK0fexFy/p2d0AAl7/ltObUEY6hdjSj0ZyYnBwUikAH\n\t Hh11NgchQYzGLMYk+LRq27fFxV2Zedk60cMVIbvZVV1lldSnRJaQVIbUjNjbzEUzlj\n\t nJQyAA7g65qs7hRLuQBKM/D3g+h5WBRUqxaBIKJ19ci4lPAog+4PrIBkOwjTWlEzm2\n\t T6JuuMG8milxRtn3J4w7R7rU/MJNLCB0vcD5kqvwCL3B9gKpGSQ/7H/wPk+wh7GYMP\n\t pGM+W1WC4Q0YDx1+RVZd0XVEIuE25f7StXGaA99D9iDpHCiplZZwsgzYkPPH6AseWY\n\t M9RNNVYZ/oRZvjxZ9ytr94c9LT9u6E3w5ghqeR4z/CSS0h/Fvm0EnuNY7SjnUoyn6I\n\t HBGfXdZYtWbd3i6LoedAntj3WqtzLoHqWKixXvtIcoTfAut/l530IMEE6Locpi8iCM\n\t QKL7J3kP2PDVXpvMNo+32QKxPP0cWA6y1roe3hRl8r/WzV5P6UqiwxBIZzVh6jPnp0\n\t HAlDGqemYb0wno8Cgr5aZvLI=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1774489851; x=1775094651;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=5LiknU9YZubs1t4YbhjYt2VxOXp5xnY1wLJwJ/9hS5A=;\n        b=Jr1Si36w3XoGjBY0C4QCyrvw5+OCK6mcD1FJrP/QDAlLe2hrhKdBbsHeb+CHyZlIOr\n         kvF5UUcpl18DnfOYy5tSp7YUxPURa0CSd9ABtlqESOnpJWWrcorm1JVa2oPX4X3ZIbwQ\n         yEbu32vA8tNOwpaVs9Cnh7T5gFO5ZbQXcAVEShK44U1h8gggM3NAShbY2IxRnpx/7dhR\n         9U79LGVBLw1P8NBYWkml/YjmsCEy0HeYiaqSaoqfOWCM3aHKSBzdGSreWOScQSl7IfPy\n         gEVe+A8Shx7M10d2Lwr1iCYG/MXO+eLtxVVkMb8YALR+qwznuz7TgBSZE3bo2lf/GRKw\n         k+Aw==","X-Forwarded-Encrypted":"i=1;\n AJvYcCXEV6Nu2hsy1aBqR1/+bdjE+ZiiWKKlJtPmfO/GN0O3FdIdEeXSm2ibhYET1AEgcifVHF8fB/R+m6H0@vger.kernel.org","X-Gm-Message-State":"AOJu0Yw7jlj3U+kc+4p1efbl4NUxIZsx4IzGMlLwHvEBAw6syPnOwrr0\n\tJH9kIUMhYA59ZaXFF5jFVvdJkJvR5dbLWKIelY0zGi4qmkhCeGCVVQzfteZh/ejg5HlymvPzhp1\n\tR+zt8bV9Gyckk/BjnDlTR+9buCIE28g7voTac8XlmQLUtdJ8s+tUNy9aDsdrI3BZEFck+QWLS+e\n\tbxq2jXZkwPom6JDrnpO6IYl6Y4+8PQen0N0vj/2NAgkJO1Eh10+JlXQQ==","X-Gm-Gg":"ATEYQzwrhzQMVt/0/UDosZAaQuu2kx2TTp+713tE6P9XUUjWVcU/iLTaNHkZBjXtmxB\n\tgp9rJfukUPV6+FXfD/LfGm9IWJqnVT85GBB3k3PiJI7UskUl3dg91eamyjoMf3c/JO1YSrPg7xB\n\tmllUZdEcAtfr7VIW6JCMjcE4oZTJ67VJ9VrGva9kT2pIXKMG20pGBLfO2BHY3zavRuQ3mrzrjpl\n\tnuOdaw=","X-Received":["by 2002:ac2:55bc:0:b0:5a2:8570:299a with SMTP id\n 2adb3069b0e04-5a29b995643mr1360769e87.34.1774489851322;\n        Wed, 25 Mar 2026 18:50:51 -0700 (PDT)","by 2002:ac2:55bc:0:b0:5a2:8570:299a with SMTP id\n 2adb3069b0e04-5a29b995643mr1360763e87.34.1774489850890; Wed, 25 Mar 2026\n 18:50:50 -0700 (PDT)"],"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","References":"<20260128074515.2028982-1-gerald.yang@canonical.com>\n <4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>\n <bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>\n <CAMsNC+ve3dRwT1xGWB0pvBJXqBpeksf7PgbEeihcnfs=AmwVRQ@mail.gmail.com>\n <gluj62pw5pu7ag2juf5ejwsr3ghvckag7wh4zunwyk57slcrmg@42of57gybigz>\n <tmtgzmvkfag4r6lbt4i2ej5ad3bfudezcm35l27ybit25r7l4d@5o2i4cuymh5j>\n <CAMsNC+svSX9AiZbs1dd4qigZqBuOjuCHOjpyXzgaO0sNLUHDYA@mail.gmail.com>","In-Reply-To":"\n <CAMsNC+svSX9AiZbs1dd4qigZqBuOjuCHOjpyXzgaO0sNLUHDYA@mail.gmail.com>","From":"Gerald Yang <gerald.yang@canonical.com>","Date":"Thu, 26 Mar 2026 09:50:39 +0800","X-Gm-Features":"AQROBzC5qkRVEJWUzMStw_8-1sql28Z61YBoEXnUUP9N0BkDzey6scwgVfHn69Q","Message-ID":"\n <CAMsNC+vQceRaw9DkbQFo1p2piwcwDbTgohqt=Gtqj27n42kLTQ@mail.gmail.com>","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","To":"Jan Kara <jack@suse.cz>","Cc":"tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org,\n\tgerald.yang.tw@gmail.com","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","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\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"}},{"id":3669558,"web_url":"http://patchwork.ozlabs.org/comment/3669558/","msgid":"<si7uicc6vntron5s64lt5fzcubizryshxeafdeysqdid2xfmfx@mrjpfbddtdqk>","list_archive_url":null,"date":"2026-03-26T08:54:15","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":363,"url":"http://patchwork.ozlabs.org/api/people/363/","name":"Jan Kara","email":"jack@suse.cz"},"content":"Hi!\n\nOn Thu 26-03-26 09:50:39, Gerald Yang wrote:\n> I'd like to ask when this will land in upstream kernel? Thanks.\n\nWell, this is more a question to Ted. He didn't pick up the patch [1] to\nhis tree yet. I guess he'll pick it up for the next merge window which will\nstart in two weeks or so.\n\n\t\t\t\t\t\t\t\tHonza\n\n[1] https://lore.kernel.org/linux-ext4/20260205092223.21287-2-jack@suse.cz/\n\n> \n> On Thu, Feb 5, 2026 at 8:59 PM Gerald Yang <gerald.yang@canonical.com> wrote:\n> >\n> > Thanks Jan for fixing this issue, I can confirm the patch works for me too.\n> >\n> >\n> > On Thu, Feb 5, 2026 at 5:25 PM Jan Kara <jack@suse.cz> wrote:\n> > >\n> > > On Tue 03-02-26 15:50:43, Jan Kara wrote:\n> > > > Hello,\n> > > >\n> > > > On Fri 30-01-26 19:38:55, Gerald Yang wrote:\n> > > > > Thanks for sharing the findings, I'd also like to share some findings:\n> > > > > I tried to figure out why the buffer is dirty after calling sync_filesystem,\n> > > > > in mpage_prepare_extent_to_map, first I printed folio_test_dirty(folio):\n> > > > >\n> > > > > while (index <= end)\n> > > > >     ...\n> > > > >     for (i = 0; i < nr_folios; i++) {\n> > > > >         ...\n> > > > >         (print if folio is dirty here)\n> > > > >\n> > > > > and actually all folios are clean:\n> > > > > if (!folio_test_dirty(folio) ||\n> > > > >     ...\n> > > > >     folio_unlock(folio);\n> > > > >     continue;       <==== continue here without writing anything\n> > > > >\n> > > > > Because the call trace happens before going into the above while loop:\n> > > > >\n> > > > > if (ext4_should_journal_data(mpd->inode)) {\n> > > > >     handle = ext4_journal_start(mpd->inode, EXT4_HT_WRITE_PAGE,\n> > > > >\n> > > > > it checks if the file system is read only and dumps the call trace in\n> > > > > ext4_journal_check_start, but it doesn't check if there are any real writes\n> > > > > that will happen later in the loop.\n> > > > >\n> > > > > To confirm this, first I added 2 more lines in the reproduce script before\n> > > > > remounting read only:\n> > > > > sync      <==== it calls ext4_sync_fs to flush all dirty data same as what's\n> > > > >                          called during remount read only\n> > > > > echo 1 > /proc/sys/vm/drop_caches       <==== drop clean page cache\n> > > > > mount -o remount,ro ext4disk mnt\n> > > > >\n> > > > > Then I can no longer reproduce the call trace.\n> > > >\n> > > > OK, but ext4_do_writepages() has a check at the beginning:\n> > > >\n> > > >         if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY))\n> > > >                 goto out_writepages;\n> > > >\n> > > > So if there are no dirty pages, mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)\n> > > > should be false and so we shouldn't go further?\n> > > >\n> > > > It all looks like some kind of a race because I'm not always able to\n> > > > reproduce the problem... I'll try to look more into this.\n> > >\n> > > OK, the race is with checkpointing code writing the buffers while flush\n> > > worker tries to writeback the pages. I've posted a patch which fixes the\n> > > issue for me.\n> > >\n> > >                                                                 Honza\n> > > --\n> > > Jan Kara <jack@suse.com>\n> > > SUSE Labs, CR","headers":{"Return-Path":"\n <SRS0=HWKK=B2=vger.kernel.org=linux-ext4+bounces-15391-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=CS3CDIxY;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=okCg2k1+;\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=CS3CDIxY;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=okCg2k1+;\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=hwkk=b2=vger.kernel.org=linux-ext4+bounces-15391-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=CS3CDIxY;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=okCg2k1+;\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=CS3CDIxY;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=okCg2k1+;\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-15391-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=\"CS3CDIxY\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"okCg2k1+\";\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"CS3CDIxY\";\n\tdkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=\"okCg2k1+\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=195.135.223.130","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-out1.suse.de;\n\tdkim=pass header.d=suse.cz header.s=susede2_rsa header.b=CS3CDIxY;\n\tdkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=okCg2k1+"],"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 4fhJ4f2HDmz1yGL\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 20:14:26 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fhJ4Y1mpPz4wHX\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 20:14:21 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4fhJ4Y1hxkz4wBB; Thu, 26 Mar 2026 20:14:21 +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 4fhJ4T3SXKz4wHX\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 26 Mar 2026 20:14:17 +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 B980330FF3EF\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 26 Mar 2026 08:54:34 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 226883385B2;\n\tThu, 26 Mar 2026 08:54:34 +0000 (UTC)","from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130])\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 A70D4238C0D\n\tfor <linux-ext4@vger.kernel.org>; Thu, 26 Mar 2026 08:54: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-out1.suse.de (Postfix) with ESMTPS id 6A9A04D1D6;\n\tThu, 26 Mar 2026 08:54:30 +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 624524A0A3;\n\tThu, 26 Mar 2026 08:54:30 +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 95T0F0b0xGlkFAAAD6G6ig\n\t(envelope-from <jack@suse.cz>); Thu, 26 Mar 2026 08:54:30 +0000","by quack3.suse.cz (Postfix, from userid 1000)\n\tid 28A5CA0976; Thu, 26 Mar 2026 09:54:15 +0100 (CET)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774516461; cv=pass;\n\tb=nilsq4p5/ll1rg9sdUwiSkB/TXOUuduR9duOsp2Zg+FhBNo8E0QHBjYb3wxLmwD6P+y5Sfk6culeQ0ivkBrgU0T7d9K3ztVb2HDXtnlFhS0xMACoLFAso33vksqP94gWjtFNqaVjQGAjHVBg2kb+KXg1338Y68ZMQkXIu2um4N4UabZa9UQlold1kLQNPScMgZThIn/AZ3fjn52963Gd4EpbVOtWGwFuDNkR/e2NevRWdrrOSyGpUiMGY26V4DJ46d/NtkYb39CGpUmkY0oqNFFcZqArV4yp82KUAPq8xDywYhN3j+szTa+gH3OKuZ4sJ2G4VsT66CAAPCc62oz4mg==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774515273; cv=none;\n b=gNi2qc61j4y/fxM2OcMalma8iogizrvUEsPmj8hCyEjH+htAShiJqsotHnjtKkkF3G1LwtZwhTIU5/lLhsl9bj2BzXeBw5TCdWVihHYJW5m0+h8Yt6vh1EMrS1i8Fw3FMNQTShx6QYysuU2CTceC9zG2pFVRv545X+WBmEB7kOE="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774516461; c=relaxed/relaxed;\n\tbh=Br44nmkxCVytNQXFn847Bbh23FzkCfmi1y/mW25/n5c=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=JrkknKOPAC38jC9No1AIz+yobZqufrpD24LLPgqdfwF9mZchKJNPq72AIySujsmrqEX/N9uG2UWh8/6b2psyufX3ko43HHxFdJc7t5ZW3VW/lulCcPUwfQtEHHFSbWEppibxE1bt73MEgMi5olmnME5+FUsaFKAz3iglzdN9V8E0snpC6n9xPJhTWsypVdfGmZYMJ6w0lndDgPSC9v9Oo+tCNwpen1uUX22iCmgzEKb+jN7ytIvC2K7ZoGmEVy1i2f7kl+40xpaNoud7/AjsVEAJLwHb9I4NxS95F6iOBRj0ETCTdCzHn1y8BJd2On9j5A8lElJ0mfSDY02uQNvg9A==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774515273; c=relaxed/simple;\n\tbh=uiiNx1ZWyQEXD/kufQhoH8rlHz/F3kdTSsVp4B2lvpo=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=qAgCjq6VfwtSStPQwpHvPy24MFuwPmuIyDO4iYwrOY5dn8ay6Se6Sv2rhi6sYeq/FIgP7bid0UYXFsURgKRQxyrs6aWOz6v1PupixzMOM7YZSjpBxKc5nxWgDuV3JyWy6g/hrilvsMDeDCzs5CIfc/6EDFVmWca5W1Fv83N2TL4="],"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=CS3CDIxY;\n dkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=okCg2k1+;\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=CS3CDIxY;\n dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=okCg2k1+; dkim-atps=neutral;\n spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15391-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=CS3CDIxY;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=okCg2k1+;\n dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=CS3CDIxY;\n dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz\n header.b=okCg2k1+; arc=none smtp.client-ip=195.135.223.130"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n\tt=1774515270;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=Br44nmkxCVytNQXFn847Bbh23FzkCfmi1y/mW25/n5c=;\n\tb=CS3CDIxYNLeLDIMOI2/0+Gjngz/mZq4ADmSppj4MMQb9wzi6k8wQzgiftEIXtUlrLr9byw\n\txKXsOvJ7ItRckzLe0vzNJSgJvrk5RraInUgTC40kuEO0f5W4lSwGuk8Rg9Z0unsSjut0hq\n\tAmcDm6nDI/WRbkDdeSiG5KQREFtAZiU=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1774515270;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=Br44nmkxCVytNQXFn847Bbh23FzkCfmi1y/mW25/n5c=;\n\tb=okCg2k1+PkkidYVrmf+qra0iY3l4V5VCHHC6IMwmBs3QvU2K0uyp/NR5/T6E3FQWwrrmBN\n\tBIdid14NL9KB1DCw==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n\tt=1774515270;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=Br44nmkxCVytNQXFn847Bbh23FzkCfmi1y/mW25/n5c=;\n\tb=CS3CDIxYNLeLDIMOI2/0+Gjngz/mZq4ADmSppj4MMQb9wzi6k8wQzgiftEIXtUlrLr9byw\n\txKXsOvJ7ItRckzLe0vzNJSgJvrk5RraInUgTC40kuEO0f5W4lSwGuk8Rg9Z0unsSjut0hq\n\tAmcDm6nDI/WRbkDdeSiG5KQREFtAZiU=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n\ts=susede2_ed25519; t=1774515270;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=Br44nmkxCVytNQXFn847Bbh23FzkCfmi1y/mW25/n5c=;\n\tb=okCg2k1+PkkidYVrmf+qra0iY3l4V5VCHHC6IMwmBs3QvU2K0uyp/NR5/T6E3FQWwrrmBN\n\tBIdid14NL9KB1DCw=="],"Date":"Thu, 26 Mar 2026 09:54:15 +0100","From":"Jan Kara <jack@suse.cz>","To":"Gerald Yang <gerald.yang@canonical.com>","Cc":"Jan Kara <jack@suse.cz>, tytso@mit.edu, adilger.kernel@dilger.ca,\n\tlinux-ext4@vger.kernel.org, gerald.yang.tw@gmail.com","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","Message-ID":"<si7uicc6vntron5s64lt5fzcubizryshxeafdeysqdid2xfmfx@mrjpfbddtdqk>","References":"<20260128074515.2028982-1-gerald.yang@canonical.com>\n <4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>\n <bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>\n <CAMsNC+ve3dRwT1xGWB0pvBJXqBpeksf7PgbEeihcnfs=AmwVRQ@mail.gmail.com>\n <gluj62pw5pu7ag2juf5ejwsr3ghvckag7wh4zunwyk57slcrmg@42of57gybigz>\n <tmtgzmvkfag4r6lbt4i2ej5ad3bfudezcm35l27ybit25r7l4d@5o2i4cuymh5j>\n <CAMsNC+svSX9AiZbs1dd4qigZqBuOjuCHOjpyXzgaO0sNLUHDYA@mail.gmail.com>\n <CAMsNC+vQceRaw9DkbQFo1p2piwcwDbTgohqt=Gtqj27n42kLTQ@mail.gmail.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-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","Content-Transfer-Encoding":"8bit","In-Reply-To":"\n <CAMsNC+vQceRaw9DkbQFo1p2piwcwDbTgohqt=Gtqj27n42kLTQ@mail.gmail.com>","X-Rspamd-Action":"no action","X-Rspamd-Server":"rspamd2.dmz-prg2.suse.org","X-Spamd-Result":"default: False [-2.51 / 50.00];\n\tBAYES_HAM(-3.00)[100.00%];\n\tSUSPICIOUS_RECIPS(1.50)[];\n\tNEURAL_HAM_LONG(-1.00)[-1.000];\n\tMID_RHS_NOT_FQDN(0.50)[];\n\tR_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tNEURAL_HAM_SHORT(-0.20)[-1.000];\n\tMIME_GOOD(-0.10)[text/plain];\n\tMX_GOOD(-0.01)[];\n\tRCVD_COUNT_THREE(0.00)[3];\n\tTO_DN_SOME(0.00)[];\n\tFUZZY_RATELIMITED(0.00)[rspamd.com];\n\tMIME_TRACE(0.00)[0:+];\n\tARC_NA(0.00)[];\n\tDKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n\tRCVD_TLS_LAST(0.00)[];\n\tFREEMAIL_ENVRCPT(0.00)[gmail.com];\n\tRCPT_COUNT_FIVE(0.00)[6];\n\tDNSWL_BLOCKED(0.00)[2a07:de40:b281:104:10:150:64:97:from,2a07:de40:b281:106:10:150:64:167:received];\n\tFROM_EQ_ENVFROM(0.00)[];\n\tFROM_HAS_DN(0.00)[];\n\tTO_MATCH_ENVRCPT_ALL(0.00)[];\n\tTAGGED_RCPT(0.00)[];\n\tMISSING_XM_UA(0.00)[];\n\tRCVD_VIA_SMTP_AUTH(0.00)[];\n\tFREEMAIL_CC(0.00)[suse.cz,mit.edu,dilger.ca,vger.kernel.org,gmail.com];\n\tDKIM_TRACE(0.00)[suse.cz:+];\n\tDBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim,suse.cz:email,suse.com:email,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns]","X-Rspamd-Queue-Id":"6A9A04D1D6","X-Spam-Score":"-2.51","X-Spam-Level":"","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"}},{"id":3670116,"web_url":"http://patchwork.ozlabs.org/comment/3670116/","msgid":"<CAMsNC+u83HArYs1zjQ-YUHyADruros20LOB2m52=aeDXcpuJVQ@mail.gmail.com>","list_archive_url":null,"date":"2026-03-27T07:26:38","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":77781,"url":"http://patchwork.ozlabs.org/api/people/77781/","name":"Gerald Yang","email":"gerald.yang@canonical.com"},"content":"Thanks Jan!\n\nHi Ted,\n\nWould this be merged into the next merge window?\nhttps://lore.kernel.org/linux-ext4/20260205092223.21287-2-jack@suse.cz/\n\nThanks,\nGerald\n\nOn Thu, Mar 26, 2026 at 4:54 PM Jan Kara <jack@suse.cz> wrote:\n>\n> Hi!\n>\n> On Thu 26-03-26 09:50:39, Gerald Yang wrote:\n> > I'd like to ask when this will land in upstream kernel? Thanks.\n>\n> Well, this is more a question to Ted. He didn't pick up the patch [1] to\n> his tree yet. I guess he'll pick it up for the next merge window which will\n> start in two weeks or so.\n>\n>                                                                 Honza\n>\n> [1] https://lore.kernel.org/linux-ext4/20260205092223.21287-2-jack@suse.cz/\n>\n> >\n> > On Thu, Feb 5, 2026 at 8:59 PM Gerald Yang <gerald.yang@canonical.com> wrote:\n> > >\n> > > Thanks Jan for fixing this issue, I can confirm the patch works for me too.\n> > >\n> > >\n> > > On Thu, Feb 5, 2026 at 5:25 PM Jan Kara <jack@suse.cz> wrote:\n> > > >\n> > > > On Tue 03-02-26 15:50:43, Jan Kara wrote:\n> > > > > Hello,\n> > > > >\n> > > > > On Fri 30-01-26 19:38:55, Gerald Yang wrote:\n> > > > > > Thanks for sharing the findings, I'd also like to share some findings:\n> > > > > > I tried to figure out why the buffer is dirty after calling sync_filesystem,\n> > > > > > in mpage_prepare_extent_to_map, first I printed folio_test_dirty(folio):\n> > > > > >\n> > > > > > while (index <= end)\n> > > > > >     ...\n> > > > > >     for (i = 0; i < nr_folios; i++) {\n> > > > > >         ...\n> > > > > >         (print if folio is dirty here)\n> > > > > >\n> > > > > > and actually all folios are clean:\n> > > > > > if (!folio_test_dirty(folio) ||\n> > > > > >     ...\n> > > > > >     folio_unlock(folio);\n> > > > > >     continue;       <==== continue here without writing anything\n> > > > > >\n> > > > > > Because the call trace happens before going into the above while loop:\n> > > > > >\n> > > > > > if (ext4_should_journal_data(mpd->inode)) {\n> > > > > >     handle = ext4_journal_start(mpd->inode, EXT4_HT_WRITE_PAGE,\n> > > > > >\n> > > > > > it checks if the file system is read only and dumps the call trace in\n> > > > > > ext4_journal_check_start, but it doesn't check if there are any real writes\n> > > > > > that will happen later in the loop.\n> > > > > >\n> > > > > > To confirm this, first I added 2 more lines in the reproduce script before\n> > > > > > remounting read only:\n> > > > > > sync      <==== it calls ext4_sync_fs to flush all dirty data same as what's\n> > > > > >                          called during remount read only\n> > > > > > echo 1 > /proc/sys/vm/drop_caches       <==== drop clean page cache\n> > > > > > mount -o remount,ro ext4disk mnt\n> > > > > >\n> > > > > > Then I can no longer reproduce the call trace.\n> > > > >\n> > > > > OK, but ext4_do_writepages() has a check at the beginning:\n> > > > >\n> > > > >         if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY))\n> > > > >                 goto out_writepages;\n> > > > >\n> > > > > So if there are no dirty pages, mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)\n> > > > > should be false and so we shouldn't go further?\n> > > > >\n> > > > > It all looks like some kind of a race because I'm not always able to\n> > > > > reproduce the problem... I'll try to look more into this.\n> > > >\n> > > > OK, the race is with checkpointing code writing the buffers while flush\n> > > > worker tries to writeback the pages. I've posted a patch which fixes the\n> > > > issue for me.\n> > > >\n> > > >                                                                 Honza\n> > > > --\n> > > > Jan Kara <jack@suse.com>\n> > > > SUSE Labs, CR\n> --\n> Jan Kara <jack@suse.com>\n> SUSE Labs, CR","headers":{"Return-Path":"\n <SRS0=DPRL=B3=vger.kernel.org=linux-ext4+bounces-15479-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 (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=ArRwD/yx;\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=dprl=b3=vger.kernel.org=linux-ext4+bounces-15479-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.234.253.10\n arc.chain=\"subspace.kernel.org:google.com\"","gandalf.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","gandalf.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=ArRwD/yx;\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-15479-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com\n header.b=\"ArRwD/yx\"","smtp.subspace.kernel.org;\n arc=pass smtp.client-ip=185.125.188.123","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=canonical.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 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 4fhshD3ptYz1y1x\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 18:28:44 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fhshD0FFXz4wCp\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 18:28:44 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4fhshD09lmz4wSW; Fri, 27 Mar 2026 18:28:44 +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 4fhsh658PZz4wCp\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 27 Mar 2026 18:28:38 +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 8B1463018ACE\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 27 Mar 2026 07:27:09 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 578D92FF155;\n\tFri, 27 Mar 2026 07:27:08 +0000 (UTC)","from smtp-relay-internal-1.canonical.com\n (smtp-relay-internal-1.canonical.com [185.125.188.123])\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 15BB13C661A\n\tfor <linux-ext4@vger.kernel.org>; Fri, 27 Mar 2026 07:26:58 +0000 (UTC)","from mail-lf1-f72.google.com (mail-lf1-f72.google.com\n [209.85.167.72])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id C70B13F675\n\tfor <linux-ext4@vger.kernel.org>; Fri, 27 Mar 2026 07:26:50 +0000 (UTC)","by mail-lf1-f72.google.com with SMTP id\n 2adb3069b0e04-5a143980c7aso953457e87.3\n        for <linux-ext4@vger.kernel.org>;\n Fri, 27 Mar 2026 00:26:50 -0700 (PDT)"],"ARC-Seal":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774596524; cv=pass;\n\tb=X3AIldWndA5VcUcFNcIZU8xXGN4MVXfy7ZyAX4VPiv8EMZGBw0jkzB2VLsKS06kiBzUV2DwnnBJ70RdZykIGuPSx+gnPHR/YnuVL5crilKDefAaQen+16qK3/WdvjVa0pJxQtNYQ1EnzXBgviEXvX6tHfJtaAItm8fvPSYcIrctXt2PeiaPyv0cTtUhbMzf/QSXdIDrbTWth4fuPY4qT4PGR0S3XdnTCnUYsyDcG/qUbYWDUSGeV+EYUMTv9ematQIJ66yENRY3xfq3IUrBmjRUb/1oQy5JaKiaKIYzILc75MoDSC8SOk0eFtUzl7bXByGVp8iGz3RkWpB78gB8siQ==","i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774596426; cv=pass;\n b=emIDgMLBBAMU6OEbmb1A4RJD5iQYxRs2lFTuTtAPWYudU+t5p0m68IOiL5M+naBjVsesZW1jw21T7wc89uEoSaklJP4Su3jg5I0CbYHJi8C91tf/6U8EsibBxwmBmJCtMBNs7u+BNT1Uq3drzdECrcrnyy5oKNGnMXBQHF0eVSY=","i=1; a=rsa-sha256; t=1774596410; cv=none;\n        d=google.com; s=arc-20240605;\n        b=NXZLvQYZSYVB/afSoSxykqVStQK3TuscjVT1MSRZH7E1kLXNKloxcu1pGfb0xK5thO\n         U8BssGWuKtAf/Z7bQqF/tZg2wz9T3xCOIuLJQN9WvWcTIGM3UAma3SFSYqSly1aZMIRm\n         IwK45gr0D/ccKbqOJGVD43Hx/z8NBIOwvfPvbqqHKi19AJ7U2y93nYVPfcf9uMjY4k6M\n         6ukNjvNGxrGgAAuVDi9SXMctbm9QBNNJxvJwiVwQKiIjzAr7UwyehLFUwizkSwx18IZT\n         pGNOgrQcffHlM4+VR9SV9GI86RZOP/NHPJ6QmaLObBjD8HoCSLsFV2g1GfImnxPZDgJT\n         hn9A=="],"ARC-Message-Signature":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774596524; c=relaxed/relaxed;\n\tbh=fGvKC6oA1d1MdWYMGoBXlxsXAqbx54ToRlN6blj+6jg=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=SYL0VXo1PjW5tyvIGZ83tWNSehGFtgBFfazXg84E45EZOZpZnV4PjELgftAzskoLgHhOZ8WAoWl31ra6EkIB1/PNEYUU/NW/yr2uI6DWNRZCGWoVUCXfLL+qSygMCyBOsnOFoN/zPBH40H6Rp+ECDwiIdx/bTD3nB9KNOLsOGHDG6+B4XzzaYSjmEVzjE6nNJTiTG6X+gyUfzu2KAXD99cV4o+h5h5d+0mAATgFPyftSHYz3t+F9EbF4skP4FeluoZvK+X/Srh6rccE7Z80+z5jpvkac3LI950Erlh4s872tlIf83T+krj0Uk4Ra9OLb1xaYvNEEDWNFkQmqoyyd+Q==","i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774596426; c=relaxed/simple;\n\tbh=jGS6GqAbzhTwzxPv9nNCpB9bbOqvGVzvreAAFVgePZw=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=HYiwpKO20tyAK5yHx0J23COT78+zvMlJM04A2ZAXsZvUXtt4w9YsNN+zycDImwENjX3e8Lk50jiP3AeEAK2QqUqvcvavx2+m0srOyg4i2V3aMliiwThWEo4TNzeztpIVIQQIGu2+Pe600+Pp/RX6BfNOOxKR54B+JW/uZfCDwcE=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version;\n        bh=fGvKC6oA1d1MdWYMGoBXlxsXAqbx54ToRlN6blj+6jg=;\n        fh=6ss17h27LSsQadpLR4bwXEtd0ICjyoQWkzu7TVIWxpY=;\n        b=WzqYIzQv2UNATRH53kBqaaCkIij/7Zd+H5PldNxJywuJq9PGYKkwzs2vLko5Sj+pVz\n         KH96EBZqoaOajqS9TXk6seA79AjLhvXXbzphgkbDq2UOI9d4sigG7s080mZvDuS8yO9f\n         02MNagZBSLr8MMp64PK5Fy869EeGhN9z53pTnpno/5Bev1V3cEPaLK1DkgjFYztUXOpY\n         SxSP3cwl3gWUptAV/zEh+Mt6HpLFTLSkKHijNnakNsa3yJaeQjSbQByxBPzWBH415o/+\n         UPhTvvzcsy+GWm6wkmOaR3dJgKndsQi51W6mwG6Ue/nDyBnpCYUzjg/1KTLs5UWmVby7\n         p/gg==;\n        darn=vger.kernel.org"],"ARC-Authentication-Results":["i=3; gandalf.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com;\n dkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=ArRwD/yx; dkim-atps=neutral;\n spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15479-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=canonical.com;\n spf=pass smtp.mailfrom=canonical.com;\n dkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com\n header.b=ArRwD/yx; arc=pass smtp.client-ip=185.125.188.123","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n\ts=20251003; t=1774596410;\n\tbh=fGvKC6oA1d1MdWYMGoBXlxsXAqbx54ToRlN6blj+6jg=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n\tb=ArRwD/yxY0fs/WpD/eZwUFiU70MFfqaFPo23QFJQhovAFLb/QmgCL5+YoYMEbk9oR\n\t DpRO4EQt+sH7EpKO1vN68qfznUnUwAF483vLjdKQtweFaqbyI/I1COSIb8RLD3Wg9/\n\t boL5rotCzfS2GRN+z9ChRtLzdGgfr8hp49fdFhKefz2npID0xLuxex2njDAHbmAMIq\n\t VF25b3sQCXk4asNWsyFzniZc8WDnCM7lXUdLVkr9UpyisRJhHT9r+2korsd8QTI6Id\n\t GaMZfGE6PNicHEVkZm1z+1kk+BqviV/hnUJ5Kadzlvjy+IJ9WAFTVFGBzPHtu6OBaC\n\t +318UIjA1xWYfu745g+bdHbxZdJgX/r7dpkV4Y3cqHYPwZEcDNPdQLRw8DUSy+ji9o\n\t 9qOwynU2AZ/1JGbAiSyl3+5tpCQoB3JgNisfRNc0o9w06ZdJ0K9aCU6QR//u3GmIHP\n\t O06mHiAwtLyrInIVVu0uYaYOveMe3IZr1b0oc5mwAISVVdRGKtsDJ7QntYN54cqDI1\n\t /JZuMww/ku4S43nDTXG5LDBndhg6MZ0hOnraLMMYNjbkKIS+98g3vMofSBiLwAumrV\n\t sjOBmXCtHIYPuzgFkdL/ZymdQJsaWRT1+8Jz2N/OWf5L9s14Dwilcit6A7LshAD6qP\n\t LuBfyKeajoatMeEdjLMzUN04=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1774596410; x=1775201210;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=fGvKC6oA1d1MdWYMGoBXlxsXAqbx54ToRlN6blj+6jg=;\n        b=mPjloKFPuQbVOu+UVSsoH+M5Rgby6eXvJ8MEchMMuKAszT/2WRGw2skPKE5InhGuRd\n         rI4KonbTOsexHSSU+gZRIPPJ2MKWEzmTpZFLALziv/2YWMkMhpAAYx4/vuFA6aKnYaG2\n         6yM2Yku5A99WbBOvzju2l2Sbolozd+4JUHnsrmTP9GgrTrUH8qqIFNYim8DkcFBWUI0h\n         g2urxOxcDZHBd2jZWsgyG82aYj9XT6o7G13oG/okwyGfjfIRJnmhoeIGnGxK5BifiSlb\n         ShUz7dkcsi7QFirs4UYiVIFn/zn/ucy6awYZWeXmlnQAQeKxGRXxe0V31B0XP1AmFJIZ\n         6o6g==","X-Forwarded-Encrypted":"i=1;\n AJvYcCVshFgW15ewNF9KaBPvHElfbo//Wvr6rbm0YnRRuF2teDxvU8Uav9emsVmunA9d6x2H5QUqGQJrRYVZ@vger.kernel.org","X-Gm-Message-State":"AOJu0YzxovbrTKCM5Z1uEGSgjYHpbEhT1YSzHMCGaAHO2dUJYv8l9gWr\n\tNpg4f3TwtE74M8sQyeTXq6NY9apMyAWiN7KYkcAtdCmxsC8pl/SW1cutRngX1AY5njJfAoL27Ie\n\tIfWjd1m+5aEtpdKu+0CF771e5Jh95Ar+/JED34QX2V9zl4kUA1DBgFIt3hhhtbBBv1hXIMJmMUo\n\to2N/qvmJaD8AcL9B4Ozhr54odAeQ3LPj+Hoj6kNIMpyS/JcJg+uHvlSA==","X-Gm-Gg":"ATEYQzz5Ut5e2o6BjsA4VDB9urXH+p0qYEVlSb+GfSrRUHLziwvY1pmyoU3x5us973e\n\tMnqO6tD3zwwQvEwIkJ+/4OEG7u4TXnvM9C/yD8Urmo8dLYJOFRgKkxYP4tXBDUK6/P0T0+UJGzt\n\t6UfnEzLlGnc5elde6Vv8pAA4t39HhFoDyEW8u8s/oFl3VnXwXYK4yD/MYoFTEH41fdYdUg5FWlB\n\toRPWT0=","X-Received":["by 2002:a05:6512:1383:b0:5a2:86a6:4adf with SMTP id\n 2adb3069b0e04-5a2ab7f038amr473432e87.7.1774596409987;\n        Fri, 27 Mar 2026 00:26:49 -0700 (PDT)","by 2002:a05:6512:1383:b0:5a2:86a6:4adf with SMTP id\n 2adb3069b0e04-5a2ab7f038amr473420e87.7.1774596409531; Fri, 27 Mar 2026\n 00:26:49 -0700 (PDT)"],"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","References":"<20260128074515.2028982-1-gerald.yang@canonical.com>\n <4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>\n <bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>\n <CAMsNC+ve3dRwT1xGWB0pvBJXqBpeksf7PgbEeihcnfs=AmwVRQ@mail.gmail.com>\n <gluj62pw5pu7ag2juf5ejwsr3ghvckag7wh4zunwyk57slcrmg@42of57gybigz>\n <tmtgzmvkfag4r6lbt4i2ej5ad3bfudezcm35l27ybit25r7l4d@5o2i4cuymh5j>\n <CAMsNC+svSX9AiZbs1dd4qigZqBuOjuCHOjpyXzgaO0sNLUHDYA@mail.gmail.com>\n <CAMsNC+vQceRaw9DkbQFo1p2piwcwDbTgohqt=Gtqj27n42kLTQ@mail.gmail.com>\n <si7uicc6vntron5s64lt5fzcubizryshxeafdeysqdid2xfmfx@mrjpfbddtdqk>","In-Reply-To":"<si7uicc6vntron5s64lt5fzcubizryshxeafdeysqdid2xfmfx@mrjpfbddtdqk>","From":"Gerald Yang <gerald.yang@canonical.com>","Date":"Fri, 27 Mar 2026 15:26:38 +0800","X-Gm-Features":"AQROBzB_FqDZzyy6_JFgxEEXSM9nQEZ8DhO8qU3I2DMZjmxY-3swjfr9rDM2xWA","Message-ID":"\n <CAMsNC+u83HArYs1zjQ-YUHyADruros20LOB2m52=aeDXcpuJVQ@mail.gmail.com>","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","To":"Jan Kara <jack@suse.cz>","Cc":"tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org,\n\tgerald.yang.tw@gmail.com","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","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\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"}},{"id":3670422,"web_url":"http://patchwork.ozlabs.org/comment/3670422/","msgid":"<20260327154233.GD4383@macsyma.local>","list_archive_url":null,"date":"2026-03-27T15:42:33","subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","submitter":{"id":350,"url":"http://patchwork.ozlabs.org/api/people/350/","name":"Theodore Tso","email":"tytso@mit.edu"},"content":"On Fri, Mar 27, 2026 at 03:26:38PM +0800, Gerald Yang wrote:\n> \n> Would this be merged into the next merge window?\n> https://lore.kernel.org/linux-ext4/20260205092223.21287-2-jack@suse.cz/\n\nYes, it's in the ext4 git tree already and will be sent along with a\nnumber of other bugfixes to Linus before 7.0 is released.\n\n       \t  \t\t    \t  \t     - Ted","headers":{"Return-Path":"\n <SRS0=IpXk=B3=vger.kernel.org=linux-ext4+bounces-15501-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=mit.edu header.i=@mit.edu header.a=rsa-sha256\n header.s=outgoing header.b=W3qP9m+b;\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=ipxk=b3=vger.kernel.org=linux-ext4+bounces-15501-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=pass (p=none dis=none) header.from=mit.edu","gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256\n header.s=outgoing header.b=W3qP9m+b;\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-15501-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu\n header.b=\"W3qP9m+b\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=18.9.28.11","smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=mit.edu","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=mit.edu"],"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 4fj4m92m8Qz1y1P\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 02:47:52 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fj4m32fG3z4wCG\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 02:47:47 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4fj4m32B0Yz4wSd; Sat, 28 Mar 2026 02:47:47 +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 4fj4ly0Dvdz4wCG\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 28 Mar 2026 02:47:42 +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 D863730DC182\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 27 Mar 2026 15:42:50 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 59275330649;\n\tFri, 27 Mar 2026 15:42:48 +0000 (UTC)","from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\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 E427131716B\n\tfor <linux-ext4@vger.kernel.org>; Fri, 27 Mar 2026 15:42:45 +0000 (UTC)","from macsyma.thunk.org (c-73-9-28-129.hsd1.il.comcast.net\n [73.9.28.129])\n\t(authenticated bits=0)\n        (User authenticated as tytso@ATHENA.MIT.EDU)\n\tby outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 62RFgYcJ020418\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 27 Mar 2026 11:42:35 -0400","by macsyma.thunk.org (Postfix, from userid 15806)\n\tid 8FA625F9BCF1; Fri, 27 Mar 2026 10:42:33 -0500 (CDT)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774626467; cv=pass;\n\tb=GqUwzSKSDvW6a2B8roWrwwXhEsi8zyM4RJHcLt/p+wa+Ur/UuFmMUXVw9DtXkF/pv62spa+u9+aYSRWNOD0XP0Tk28dDfSTXdSgxWMTW9PcfwMVUCbWIZmQw2makwqvy6eAT8NvIQZxL85YFZJTqvZ3dIXnymZ7iEz9f9qd972owDqjiHFc0j3kYc19fujt123s9LYcFeGhtiFyvZizRjk1IZEEEyqRtKWJ2iOfDuHUNOE56+UHW0ZDuT73RRE2XqqxIFboT9IEQUIAXUwnO2b8VhbfVeIf7wigd72HQjX0vtIq+/Kw4XRv4ZYf14D/wZTPmFlmV/cdtZqq847dv/g==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774626167; cv=none;\n b=G9zHSV8RJ7/xBvYR/EFnYUxXNBQvw3XsXJ9insNPy2/fyXCZFhP/h91LkSnmKUWxi451KgaY0i3uQfKUI59r6va+T0cvGtQ629SeI9I9juXO8qXmOrcayDHOzDbYypjSW4BL31KBG0iJsxFQlBThxcs2VDSSrZLnwQpUSC9PgrY="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774626467; c=relaxed/relaxed;\n\tbh=1er/RskN0vgkHg8Op++rmdJAjd+Cw53EY//ShEnTlY0=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=bkDye1Q0lHBm7beShLOm2WKEVj7OQY6+NmjcIAO/3bJ68p/q+iVHGDg/X4C/1uOp9efmzDpy+vA3JuhGPkKydC8rBuGrk4Y6cVQ0k7J6x603HQxLWZoVmoN5MQJdwp2/dCvDl0mFgzF9rj/EHkYXNwYRzPIwphK6SwwAc2eVGQMrRiHa3VINpBBFt1CvT/XFrTChg5UvhgpYgj36/FUa6sxche1P7kXHZM+qLEZECBrkgVw/Q529aJy8eOcLiO9slDKwqzIk2RvwoGoa3+FhtjzhMm84GV+luCXsenXulMjfdFrkPADomtWqNay79SX+SbSUG0Z5QI7oaxZwUnQsAQ==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774626167; c=relaxed/simple;\n\tbh=/fsmBeV8mwd0xFPdQ6ufX1/kc/hVPzAFzEkHlcxBJgQ=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=YCf9/VNGRlN/8EoQIzMGnkV6e3pmXAP5fG0cKLPjpQKWXregOnghz2QCDJAaqtYDKZLQ3HEEWpS3b2pABPk2JemQMF2GgBCQvsvOl7t1eTI2RNsMY5vCbJ+VKzYhTOOPlNdgYHYbQDQSfDvwiMtM0y8eeSsPeSofvU3sa0c34q8="],"ARC-Authentication-Results":["i=2; gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=mit.edu; dkim=pass (2048-bit key;\n unprotected) header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256\n header.s=outgoing header.b=W3qP9m+b; 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-15501-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=mit.edu;\n spf=pass smtp.mailfrom=mit.edu;\n dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu\n header.b=W3qP9m+b; arc=none smtp.client-ip=18.9.28.11"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing;\n\tt=1774626156; bh=1er/RskN0vgkHg8Op++rmdJAjd+Cw53EY//ShEnTlY0=;\n\th=Date:From:Subject:Message-ID:MIME-Version:Content-Type;\n\tb=W3qP9m+bSher5PBpmr8CVQhhP+6afTcWVB0HHt6g9inBAYqwLgGT6bifxBhR/tkf8\n\t qsXidyR048qSHmPw9hvPzu8uuUj2XwetaeydBAaoSb1DtxXdsXxrollubN7Ojk/qVX\n\t GTjXpLNOr+gVllpQ+b3KszSXH5/9d0nfA0MYlv8OuNJx6wTGDLuMqYoFPRM20679C0\n\t +5nIhE/u9xshpZPvJaBdOFiSXd/wpiz1KsOP30fkx8b6aPc89/qiGzilxluUKqh9NJ\n\t DzAjJ42mrhcCGptsj7hhgWBJEU19g2O0sSVgBxbfMSK/BkYSd6MAK0XUf2s9zwdReX\n\t wimUtKhVFwrBw==","Date":"Fri, 27 Mar 2026 10:42:33 -0500","From":"\"Theodore Tso\" <tytso@mit.edu>","To":"Gerald Yang <gerald.yang@canonical.com>","Cc":"Jan Kara <jack@suse.cz>, adilger.kernel@dilger.ca,\n        linux-ext4@vger.kernel.org, gerald.yang.tw@gmail.com","Subject":"Re: [PATCH] ext4: Fix call trace when remounting to read only in\n data=journal mode","Message-ID":"<20260327154233.GD4383@macsyma.local>","References":"<4u2l4huoj7zsfy2u37lgdzlmwwdntgqaer7wta7ud3kat7ox2n@oxhbcqryre3r>\n <CAMsNC+s1R-AUzhe80vjxYCSRu0X9Ybp33sSMHGHKpBL6=dG2_w@mail.gmail.com>\n <bycdopvwzfaskilhk3nsljuk3gkztvoa3is466a6utuj2lozmj@pxf44ulcnqup>\n <CAMsNC+ve3dRwT1xGWB0pvBJXqBpeksf7PgbEeihcnfs=AmwVRQ@mail.gmail.com>\n <gluj62pw5pu7ag2juf5ejwsr3ghvckag7wh4zunwyk57slcrmg@42of57gybigz>\n <tmtgzmvkfag4r6lbt4i2ej5ad3bfudezcm35l27ybit25r7l4d@5o2i4cuymh5j>\n <CAMsNC+svSX9AiZbs1dd4qigZqBuOjuCHOjpyXzgaO0sNLUHDYA@mail.gmail.com>\n <CAMsNC+vQceRaw9DkbQFo1p2piwcwDbTgohqt=Gtqj27n42kLTQ@mail.gmail.com>\n <si7uicc6vntron5s64lt5fzcubizryshxeafdeysqdid2xfmfx@mrjpfbddtdqk>\n <CAMsNC+u83HArYs1zjQ-YUHyADruros20LOB2m52=aeDXcpuJVQ@mail.gmail.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-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"\n <CAMsNC+u83HArYs1zjQ-YUHyADruros20LOB2m52=aeDXcpuJVQ@mail.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_PASS,\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"}}]