提交 cc0f4eaa 编写于 作者: K Kent Overstreet

bcache: Use WARN_ONCE() instead of __WARN()

Signed-off-by: NKent Overstreet <koverstreet@google.com>
上级 cd953ed0
......@@ -883,7 +883,7 @@ struct bkey *bch_btree_iter_next(struct btree_iter *iter)
iter->data->k = bkey_next(iter->data->k);
if (iter->data->k > iter->data->end) {
__WARN();
WARN_ONCE(1, "bset was corrupt!\n");
iter->data->k = iter->data->end;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册