mbox series

[00/11] btrfs: some cleanups and optimizations for extent maps

Message ID cover.1701706418.git.fdmanana@suse.com (mailing list archive)
Headers show
Series btrfs: some cleanups and optimizations for extent maps | expand

Message

Filipe Manana Dec. 4, 2023, 4:20 p.m. UTC
From: Filipe Manana <fdmanana@suse.com>

These do some cleanups around extent maps and their tests, as well as
some optimizations. These are part of a larger work around extent maps,
but as they are fairly independent and the remainder will take a longer
while, sending these out separately. More details on the change logs.

Filipe Manana (11):
  btrfs: assert extent map is not in a list when setting it up
  btrfs: tests: fix error messages for test case 4 of extent map tests
  btrfs: tests: do not ignore NULL extent maps for extent maps tests
  btrfs: tests: print all values as decimal in messages for extent map tests
  btrfs: unexport add_extent_mapping()
  btrfs: remove redundant value assignment at btrfs_add_extent_mapping()
  btrfs: log messages at unpin_extent_range() during unexpected cases
  btrfs: avoid useless rbtree iterations when attempting to merge extent map
  btrfs: make extent_map_end() argument const
  btrfs: refactor mergable_maps() for more readability
  btrfs: use the flags of an extent map to identify the compression type

 fs/btrfs/compression.c            |   4 +-
 fs/btrfs/defrag.c                 |   8 +-
 fs/btrfs/extent_io.c              |  13 ++-
 fs/btrfs/extent_map.c             | 139 ++++++++++++++++--------------
 fs/btrfs/extent_map.h             |  64 +++++++++++---
 fs/btrfs/file-item.c              |   9 +-
 fs/btrfs/file.c                   |  10 +--
 fs/btrfs/inode.c                  |  35 ++++----
 fs/btrfs/relocation.c             |   2 +-
 fs/btrfs/tests/extent-map-tests.c | 103 +++++++++++++---------
 fs/btrfs/tests/inode-tests.c      |  60 ++++++-------
 fs/btrfs/tree-log.c               |  16 ++--
 include/trace/events/btrfs.h      |  21 +++--
 13 files changed, 272 insertions(+), 212 deletions(-)

Comments

David Sterba Dec. 5, 2023, 3:58 p.m. UTC | #1
On Mon, Dec 04, 2023 at 04:20:22PM +0000, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
> 
> These do some cleanups around extent maps and their tests, as well as
> some optimizations. These are part of a larger work around extent maps,
> but as they are fairly independent and the remainder will take a longer
> while, sending these out separately. More details on the change logs.
> 
> Filipe Manana (11):
>   btrfs: assert extent map is not in a list when setting it up
>   btrfs: tests: fix error messages for test case 4 of extent map tests
>   btrfs: tests: do not ignore NULL extent maps for extent maps tests
>   btrfs: tests: print all values as decimal in messages for extent map tests
>   btrfs: unexport add_extent_mapping()
>   btrfs: remove redundant value assignment at btrfs_add_extent_mapping()
>   btrfs: log messages at unpin_extent_range() during unexpected cases
>   btrfs: avoid useless rbtree iterations when attempting to merge extent map
>   btrfs: make extent_map_end() argument const
>   btrfs: refactor mergable_maps() for more readability
>   btrfs: use the flags of an extent map to identify the compression type

Added to misc-next, thanks.