Skip to content

btrfs: rename exported functions from extent_map.h

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6btrfs: rename exported extent map compression functionsfs/btrfs/compression.c fs/btrfs/defrag.c fs/btrfs/direct-io.c +7 more+32 -310 replies
2/6btrfs: rename extent map functions to get block start, end and check if in treefs/btrfs/compression.c fs/btrfs/defrag.c fs/btrfs/direct-io.c +8 more+77 -750 replies
3/6btrfs: rename functions to allocate and free extent mapsfs/btrfs/compression.c fs/btrfs/defrag.c fs/btrfs/direct-io.c +10 more+150 -1500 replies
4/6btrfs: rename remaining exported extent map functionsfs/btrfs/compression.c fs/btrfs/defrag.c fs/btrfs/direct-io.c +9 more+60 -600 replies
5/6btrfs: rename __lookup_extent_mapping() to remove double underscore prefixfs/btrfs/extent_map.c+4 -50 replies
6/6btrfs: rename __tree_search() to remove double underscore prefixfs/btrfs/extent_map.c+3 -30 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid Sterba
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] btrfs: rename exported functions from extent_map.h

From: Filipe Manana <[email protected]>

Many of the exported functions from extent_map.h don't have a 'btrfs_' prefix, but some have, making it inconsistent and also against the coding style conventions. I've added myself some of them recently, to get and set compression on an extent map, and ended up not adding the prefix since the other functions in the file didn't have the prefix, just to make things consistent. So rename the ones without the prefix to have it.

I've split this into more reasonably sized patches to avoid having a huge patch and make things easier to review.

Filipe Manana (6):
btrfs: rename exported extent map compression functions
btrfs: rename extent map functions to get block start, end and check if in tree
btrfs: rename functions to allocate and free extent maps
btrfs: rename remaining exported extent map functions
btrfs: rename __lookup_extent_mapping() to remove double underscore prefix
btrfs: rename __tree_search() to remove double underscore prefix

 fs/btrfs/compression.c            |  18 ++--
 fs/btrfs/defrag.c                 |  22 ++--
 fs/btrfs/direct-io.c              |  26 ++---
 fs/btrfs/disk-io.c                |   2 +-
 fs/btrfs/extent_io.c              |  45 +++++----
 fs/btrfs/extent_map.c             | 163 +++++++++++++++---------------
 fs/btrfs/extent_map.h             |  47 ++++-----
 fs/btrfs/file-item.c              |   4 +-
 fs/btrfs/file.c                   |  30 +++---
 fs/btrfs/inode.c                  |  80 +++++++--------
 fs/btrfs/relocation.c             |   4 +-
 fs/btrfs/super.c                  |   4 +-
 fs/btrfs/tests/extent-map-tests.c | 102 +++++++++----------
 fs/btrfs/tests/inode-tests.c      |  79 ++++++++-------
 fs/btrfs/tree-log.c               |  16 +--
 fs/btrfs/zoned.c                  |  10 +-
 16 files changed, 327 insertions(+), 325 deletions(-)
Signature · 1 line
2.45.2