aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/defrag.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-04-08 15:41:15 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:45 +0000
commit962162ffa64f311a8c0cfbf1acfe7a8da126d4b0 (patch)
treedaf906d48ac245251845bbf5cf0377bc10225a6e /fs/btrfs/defrag.c
parentbtrfs: tracepoints: remove no longer used tracepoints for eb locking (diff)
downloadkernel-962162ffa64f311a8c0cfbf1acfe7a8da126d4b0.tar.gz
kernel-962162ffa64f311a8c0cfbf1acfe7a8da126d4b0.zip
btrfs: rename exported extent map compression functions
These functions are exported and don't have a 'btrfs_' prefix in their names, which goes against coding style conventions. Rename them to have such prefix, making it clear they are from btrfs and avoiding potential collisions in the future with functions defined elsewhere outside btrfs. Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/defrag.c')
-rw-r--r--fs/btrfs/defrag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/defrag.c b/fs/btrfs/defrag.c
index d56815a685be..5909740b2ce9 100644
--- a/fs/btrfs/defrag.c
+++ b/fs/btrfs/defrag.c
@@ -791,7 +791,7 @@ static struct extent_map *defrag_lookup_extent(struct inode *inode, u64 start,
static u32 get_extent_max_capacity(const struct btrfs_fs_info *fs_info,
const struct extent_map *em)
{
- if (extent_map_is_compressed(em))
+ if (btrfs_extent_map_is_compressed(em))
return BTRFS_MAX_COMPRESSED;
return fs_info->max_extent_size;
}