mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chi Zhiling <chizhiling@163.com>
To: Namjae Jeon <linkinjeon@kernel.org>
Cc: exfat@lists.linux.dev, linux-kernel@vger.kernel.org,
	Yuezhang.Mo@sony.com, dxdt@dev.snart.me, sj1557.seo@samsung.com,
	Chi Zhiling <chizhiling@kylinos.cn>,
	Jiale Yao <yaojiale02@163.com>
Subject: Re: [PATCH v2 3/4] exfat: dirty all new pages when extending valid_size
Date: Mon, 5 Oct 2026 18:18:54 +0800	[thread overview]
Message-ID: <5b101dea-77ef-4ae7-b8d9-54df20b0a6a5@163.com> (raw)
In-Reply-To: <CAKYAXd-2cSYwBcAfGtcAYbK95FfpASRrptz4YUf7Ke-cXK00PA@mail.gmail.com>

On 10/5/26 5:08 PM, Namjae Jeon wrote:
>> @@ -664,90 +664,30 @@ int exfat_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
>>   static int exfat_zero_new_range(struct inode *inode, loff_t start, loff_t end)
> Function name and comments no longer seem to match. What do you think
> about changing them like this?
> 
> /*
>   * exfat_prepare_valid_range - populate and dirty folios covering [start, end)
>   *
>   * Populate missing blocks via the read path, which zero-fills data
>   * beyond the current valid_size while preserving uptodate blocks.
>   * Mark entire folios dirty so the newly valid range is written back.
>   *
>   * Call before advancing valid_size.
>   */

Okay, I'll add it to v3.

> 
> And generic/538 test fails with this patch set. Please check if this
> test failure is reproducible for you as well.

I ran the tests, but I wasn't able to reproduce the failure. Could you 
tell me the block size and cluster size used to reproduce it?

There is also a new failure in generic/551. This failure can be fixed by 
adding inode_dio_wait() to exfat_extend_valid_size(). Jiale's patch 
includes this fix:

https://lore.kernel.org/exfat/20261003093035.532916-4-yaojiale02@163.com/T/#u


Thanks.


  reply	other threads:[~2026-10-05 10:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-04 10:19 [PATCH v2 0/4] exfat: fix VDL tracking bugs Chi Zhiling
2026-10-04 10:19 ` [PATCH v2 1/4] exfat: advance valid_size to EOF for append writes Chi Zhiling
2026-10-04 10:19 ` [PATCH v2 2/4] exfat: hold the invalidate lock while truncating Chi Zhiling
2026-10-04 10:19 ` [PATCH v2 3/4] exfat: dirty all new pages when extending valid_size Chi Zhiling
2026-10-05  9:08   ` Namjae Jeon
2026-10-05 10:18     ` Chi Zhiling [this message]
2026-10-06  3:57       ` Namjae Jeon
2026-10-06  6:02         ` Chi Zhiling
2026-10-06  6:30           ` Namjae Jeon
2026-10-04 10:19 ` [PATCH v2 4/4] exfat: make valid_size and zeroed_size atomic Chi Zhiling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5b101dea-77ef-4ae7-b8d9-54df20b0a6a5@163.com \
    --to=chizhiling@163.com \
    --cc=Yuezhang.Mo@sony.com \
    --cc=chizhiling@kylinos.cn \
    --cc=dxdt@dev.snart.me \
    --cc=exfat@lists.linux.dev \
    --cc=linkinjeon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sj1557.seo@samsung.com \
    --cc=yaojiale02@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®