All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: defrag: don't defrag extents already at their max capacity, then remove an ambiguous check
@ 2022-01-27  5:24 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
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Qu Wenruo @ 2022-01-27  5:24 UTC (permalink / raw)
  To: linux-btrfs

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.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-27 10:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH 0/2] btrfs: defrag: don't defrag extents already at their max capacity, then remove an ambiguous check Filipe Manana

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.