mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
bcache: fix crash in bcache_btree_node_alloc_fail tracepoint
'b' was NULL. Change-Id: Icac0fd04afa2d23f213d96d51afd53374e6dd0c0
This commit is contained in:
parent
60ae81eee8
commit
913dc33fb2
@ -1096,7 +1096,7 @@ err_free:
|
|||||||
err:
|
err:
|
||||||
mutex_unlock(&c->bucket_lock);
|
mutex_unlock(&c->bucket_lock);
|
||||||
|
|
||||||
trace_bcache_btree_node_alloc_fail(b);
|
trace_bcache_btree_node_alloc_fail(c);
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,9 +261,9 @@ DEFINE_EVENT(btree_node, bcache_btree_node_alloc,
|
|||||||
TP_ARGS(b)
|
TP_ARGS(b)
|
||||||
);
|
);
|
||||||
|
|
||||||
DEFINE_EVENT(btree_node, bcache_btree_node_alloc_fail,
|
DEFINE_EVENT(cache_set, bcache_btree_node_alloc_fail,
|
||||||
TP_PROTO(struct btree *b),
|
TP_PROTO(struct cache_set *c),
|
||||||
TP_ARGS(b)
|
TP_ARGS(c)
|
||||||
);
|
);
|
||||||
|
|
||||||
DEFINE_EVENT(btree_node, bcache_btree_node_free,
|
DEFINE_EVENT(btree_node, bcache_btree_node_free,
|
||||||
|
Loading…
Reference in New Issue
Block a user