mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
btrfs: add btrfs prefix to trace events for extent state alloc and free
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>
This commit is contained in:
parent
024b3bc190
commit
41708a4c23
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user