All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: Qu Wenruo <wqu@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 0/6] btrfs: compression: migrate to folio interfaces
Date: Thu, 28 Mar 2024 20:19:40 +0100	[thread overview]
Message-ID: <20240328191940.GA14596@suse.cz> (raw)
In-Reply-To: <750c6ff1-8d33-4470-b914-be8e10a9e678@gmx.com>

On Thu, Mar 28, 2024 at 12:52:39PM +1030, Qu Wenruo wrote:
> >> And the final patch is the core conversion, as we have several structure
> >> relying on page array, it's impossible to just convert one algorithm to
> >> folio meanwhile keep all the other using pages.
> >>
> >>
> >> Qu Wenruo (6):
> >>    btrfs: compression: add error handling for missed page cache
> >>    btrfs: compression: convert page allocation to folio interfaces
> >>    btrfs: make insert_inline_extent() to accept one page directly
> >>    btrfs: migrate insert_inline_extent() to folio interfaces
> >>    btrfs: introduce btrfs_alloc_folio_array()
> >>    btrfs: compression: migrate compression/decompression paths to folios
> >
> > I added this patchset to my misc-next and it was in linux-next until
> > now. The bug that was a blocker for folio conversions is now fixed,
> > also thanks to you, so we can continue with the conversions. As this
> > patchset is 2 months old I'm not sure if it would be helpful to start
> > commenting and do the normal iteration round, I did a review and style
> > fixup round and moved it to for-next. Please have a look and let me know
> > if you find something wrong. I did mostly whitespace changes, though I
> > did remove the ASSERT(0), if there's btrfs_crit message it's quite
> > noticeable, and removed the local variable for fs_info in the first one.
> >
> > The conversions are all direct and seem safe to me, we won't do
> > multi-page folios yet, so the intemediate steps are the right way to go.
> > Thanks.
> >
> 
> Well, since I'm reading through all the commits in misc-next, I found
> some typos from myself:
> 
> - btrfs: prefer to allocate larger folio for metadata
>    * No longer no smaller, must be an exact fit.
>      No larger no smaller, ...
> 
>    * So here we go a different workaround, allocate a order 2 folio first
>                                        ... allocate an order 2 ...

I have this patch only for testing and did not do a typo-fixing pass as
updates are still expected. Also I found some problems with this patch
in page migration, I've sent the logs to slack.

> And these patches must be dropped:
> 
> - btrfs: defrag: prepare defrag for larger data folio size
> - btrfs: introduce cached folio size
> 
>    These two introduced and utilize fs_info->folio_shift, for filemap
>    code, which is completely wrong. As filemap always expect an index
>    with PAGE_SHIFT.

Ok, will drop them.

      reply	other threads:[~2024-03-28 19:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-29  9:46 [PATCH 0/6] btrfs: compression: migrate to folio interfaces Qu Wenruo
2024-01-29  9:46 ` [PATCH 1/6] btrfs: compression: add error handling for missed page cache Qu Wenruo
2024-01-29  9:46 ` [PATCH 2/6] btrfs: compression: convert page allocation to folio interfaces Qu Wenruo
2024-01-29  9:46 ` [PATCH 3/6] btrfs: make insert_inline_extent() to accept one page directly Qu Wenruo
2024-01-29  9:46 ` [PATCH 4/6] btrfs: migrate insert_inline_extent() to folio interfaces Qu Wenruo
2024-01-29  9:46 ` [PATCH 5/6] btrfs: introduce btrfs_alloc_folio_array() Qu Wenruo
2024-01-29  9:46 ` [PATCH 6/6] btrfs: compression: migrate compression/decompression paths to folios Qu Wenruo
2024-03-26 23:33 ` [PATCH 0/6] btrfs: compression: migrate to folio interfaces David Sterba
2024-03-28  2:22   ` Qu Wenruo
2024-03-28 19:19     ` David Sterba [this message]

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=20240328191940.GA14596@suse.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=quwenruo.btrfs@gmx.com \
    --cc=wqu@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.