btrfs: add btrfs prefix to trace events for extent state alloc and free
authorFilipe Manana <fdmanana@suse.com>
Mon, 7 Apr 2025 16:52:22 +0000 (17:52 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:43 +0000 (14:30 +0200)
These trace events don't have the 'btrfs_' prefix in their name, unlike
the other trace events from extent-io-tree.c. So add the prefix to make
them consistent and follow coding style conventions too.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-io-tree.c
include/trace/events/btrfs.h

index 40da61cf3f0e7b38f35eee3f84f4c0a487cc9534..59448d3028d3ca40723c0846a4224e416d6e23fa 100644 (file)
@@ -159,7 +159,7 @@ static struct extent_state *alloc_extent_state(gfp_t mask)
        btrfs_leak_debug_add_state(state);
        refcount_set(&state->refs, 1);
        init_waitqueue_head(&state->wq);
-       trace_alloc_extent_state(state, mask, _RET_IP_);
+       trace_btrfs_alloc_extent_state(state, mask, _RET_IP_);
        return state;
 }
 
@@ -178,7 +178,7 @@ void free_extent_state(struct extent_state *state)
        if (refcount_dec_and_test(&state->refs)) {
                WARN_ON(extent_state_in_tree(state));
                btrfs_leak_debug_del_state(state);
-               trace_free_extent_state(state, _RET_IP_);
+               trace_btrfs_free_extent_state(state, _RET_IP_);
                kmem_cache_free(extent_state_cache, state);
        }
 }
index 5f3aabae642a384afa6ba69b4407d3097aa74f9a..60f9a6ca54f89b4acdb7f01b1dbf97aa7a1f6875 100644 (file)
@@ -1476,7 +1476,7 @@ TRACE_EVENT(btrfs_setup_cluster,
 );
 
 struct extent_state;
-TRACE_EVENT(alloc_extent_state,
+TRACE_EVENT(btrfs_alloc_extent_state,
 
        TP_PROTO(const struct extent_state *state,
                 gfp_t mask, unsigned long IP),
@@ -1499,7 +1499,7 @@ TRACE_EVENT(alloc_extent_state,
                  show_gfp_flags(__entry->mask), __entry->ip)
 );
 
-TRACE_EVENT(free_extent_state,
+TRACE_EVENT(btrfs_free_extent_state,
 
        TP_PROTO(const struct extent_state *state, unsigned long IP),