All of lore.kernel.org
 help / color / mirror / Atom feed
From: Filipe Manana <fdmanana@kernel.org>
To: Qu Wenruo <wqu@suse.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 0/2] btrfs: defrag: don't defrag extents already at their max capacity, then remove an ambiguous check
Date: Thu, 27 Jan 2022 10:53:59 +0000	[thread overview]
Message-ID: <YfJ5x+IY90FqkUBy@debian9.Home> (raw)
In-Reply-To: <cover.1643260816.git.wqu@suse.com>

On Thu, Jan 27, 2022 at 01:24:41PM +0800, Qu Wenruo wrote:
> Thanks to the report from Filipe where he found a new bug in compressed
> defrag, that we will try to defrag all compressed extents even it's
> already at its max compacity.
> 
> This behavior is from the beginning of btrfs defrag.
> 
> The first patch is to fix the behavior, by just rejecting extents
> which are already at their max capacity, nor allowing extents to be
> merged with extents at their max capacity.
> 
> The second patch is to remove an ambiguous rejection condition.
> The condition is believed to reject compressed extent, but it never
> really works due to the check is > 128K, not >= 128K.
> 
> And the physically adajcent check may prevent users to reduce the number
> of extents.

With so many patches sent in such short periods of time, with some in series
and others not in properly formatted series, it's likely hard for other people
to follow what's going on.

So this patchset, applies on top of the following patch:

https://patchwork.kernel.org/project/linux-btrfs/patch/20220126005850.14729-1-wqu@suse.com/

That patch is part of another series consisting of 3 patches, but this
patchset here makes the patches 2/3 and 3/3 of that other patchset
obsolete.

Thanks.

> 
> Qu Wenruo (2):
>   btrfs: defrag: don't defrag extents which is already at its max
>     capacity
>   btrfs: defrag: remove an ambiguous condition for rejection
> 
>  fs/btrfs/ioctl.c | 22 +++++++++++++++++++---
>  1 file changed, 19 insertions(+), 3 deletions(-)
> 
> -- 
> 2.34.1
> 

      parent reply	other threads:[~2022-01-27 10:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27  5:24 [PATCH 0/2] btrfs: defrag: don't defrag extents already at their max capacity, then remove an ambiguous check Qu Wenruo
2022-01-27  5:24 ` [PATCH 1/2] btrfs: defrag: don't defrag extents which is already at its max capacity Qu Wenruo
2022-01-27 10:48   ` Filipe Manana
2022-01-27  5:24 ` [PATCH 2/2] btrfs: defrag: remove an ambiguous condition for rejection Qu Wenruo
2022-01-27 10:49   ` Filipe Manana
2022-01-27 10:53 ` Filipe Manana [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=YfJ5x+IY90FqkUBy@debian9.Home \
    --to=fdmanana@kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    --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.