Re: [PATCH] btrfs: write-protect folios during data writeback

Boris Burkov <[email protected]>
Newsgroups org.kernel.vger.linux-btrfs
Message-ID <[email protected]>
On Thu, Jul 09, 2026 at 06:49:45PM +0930, Qu Wenruo wrote:
> 
> 
> 在 2026/7/9 18:16, Qu Wenruo 写道:
> > 
> [...]
> > 
> > 
> > With all these said, this may help you to craft a more reliable
> > reproducer, by:
> > 
> > 1. Allocate a large folio (e.g, 64KiB on 4K ps systems)
> >     By doing a 64KiB sized buffered write at file offset 0.
> 
> My bad, missing a sync here.
> Other wise the later mmaped write will not cause two different dirty ranges.
> 

No worries, your notes already helped me a lot with improving the
reproducer scripts that I'm working on.

> > 
> > 2. Mmap range [4K, 8K) and [16K, 20K)
> > 
> > 3. Trigger writeback with mmaped range being modified
> >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.