All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Index free space entries on size
@ 2021-11-18 15:26 Josef Bacik
  2021-11-18 15:26 ` [PATCH v4 1/2] btrfs: only use ->max_extent_size if it is set in the bitmap Josef Bacik
  2021-11-18 15:26 ` [PATCH v4 2/2] btrfs: index free space entries on size Josef Bacik
  0 siblings, 2 replies; 4+ messages in thread
From: Josef Bacik @ 2021-11-18 15:26 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

Hello,

I noticed while digging into an xfstests hang that the bytes index stuff was a
little wonky when it came to bitmap entries.  If we change the ->bytes at all we
weren't re-arranging the bytes indexed tree for bitmaps, because we don't do the
unlink/link thing that we do with extent entries.

I fixed this particular shortcoming and added a new set of selftests to validate
that everything was working as expected.  This uncovered a weirdness with how we
handle ->max_extent_size, so I've added that as a separate patch to make it
clear why the change is necessary.

Additionally I've updated my original patch to include the fixes necessary to
make bitmaps re-index when they change.  I've added self tests to validate the
changes to make sure everything is acting as we expect.  Thanks,

Josef

Josef Bacik (2):
  btrfs: only use ->max_extent_size if it is set in the bitmap
  btrfs: index free space entries on size

 fs/btrfs/free-space-cache.c       | 174 ++++++++++++++++++++++++----
 fs/btrfs/free-space-cache.h       |   2 +
 fs/btrfs/tests/free-space-tests.c | 181 ++++++++++++++++++++++++++++++
 3 files changed, 337 insertions(+), 20 deletions(-)

-- 
2.26.3


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

end of thread, other threads:[~2021-11-18 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-18 15:26 [PATCH v4 0/2] Index free space entries on size Josef Bacik
2021-11-18 15:26 ` [PATCH v4 1/2] btrfs: only use ->max_extent_size if it is set in the bitmap Josef Bacik
2021-11-18 15:26 ` [PATCH v4 2/2] btrfs: index free space entries on size Josef Bacik
2021-11-18 16:43   ` David Sterba

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.