Skip to content

Commit dc2a609

Browse files
fdmananakdave
authored andcommitted
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 <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent cdf974d commit dc2a609

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fs/btrfs/extent-io-tree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static struct extent_state *alloc_extent_state(gfp_t mask)
159159
btrfs_leak_debug_add_state(state);
160160
refcount_set(&state->refs, 1);
161161
init_waitqueue_head(&state->wq);
162-
trace_alloc_extent_state(state, mask, _RET_IP_);
162+
trace_btrfs_alloc_extent_state(state, mask, _RET_IP_);
163163
return state;
164164
}
165165

@@ -178,7 +178,7 @@ void free_extent_state(struct extent_state *state)
178178
if (refcount_dec_and_test(&state->refs)) {
179179
WARN_ON(extent_state_in_tree(state));
180180
btrfs_leak_debug_del_state(state);
181-
trace_free_extent_state(state, _RET_IP_);
181+
trace_btrfs_free_extent_state(state, _RET_IP_);
182182
kmem_cache_free(extent_state_cache, state);
183183
}
184184
}

include/trace/events/btrfs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ TRACE_EVENT(btrfs_setup_cluster,
14761476
);
14771477

14781478
struct extent_state;
1479-
TRACE_EVENT(alloc_extent_state,
1479+
TRACE_EVENT(btrfs_alloc_extent_state,
14801480

14811481
TP_PROTO(const struct extent_state *state,
14821482
gfp_t mask, unsigned long IP),
@@ -1499,7 +1499,7 @@ TRACE_EVENT(alloc_extent_state,
14991499
show_gfp_flags(__entry->mask), __entry->ip)
15001500
);
15011501

1502-
TRACE_EVENT(free_extent_state,
1502+
TRACE_EVENT(btrfs_free_extent_state,
15031503

15041504
TP_PROTO(const struct extent_state *state, unsigned long IP),
15051505

0 commit comments

Comments
 (0)